Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (26 sloc) 816 Bytes
This code provides a mechanism for running django_ses' internal
test suite without having a full Django project. It sets up the
global configuration, then dispatches out to `call_command` to
kick off the test suite.
## The Code
# Setup and configure the minimal settings necessary to
# run the test suite. Note that Django requires that the
# `DATABASES` value be present and configured in order to
# do anything.
from django.conf import settings
"default": {
"ENGINE": "django.db.backends.sqlite3",
"NAME": ":memory:",
# Start the test suite now that the settings are configured.
from import call_command
call_command("test", "django_ses")
Jump to Line
Something went wrong with that request. Please try again.