Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
27 lines (21 sloc) 588 Bytes
import os.path
import sys
from django.conf import settings
settings.configure(
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': os.path.join(os.path.dirname(__file__), 'testdb.sqlite'),
}
},
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
}
},
INSTALLED_APPS = ('chunks',)
)
from django.test.utils import get_runner
test_runner = get_runner(settings)()
failures = test_runner.run_tests(['chunks'])
sys.exit(failures)