diff options
Diffstat (limited to 'compressor/test_settings.py')
| -rw-r--r-- | compressor/test_settings.py | 22 |
1 files changed, 13 insertions, 9 deletions
diff --git a/compressor/test_settings.py b/compressor/test_settings.py index 0e8a768..a5abf92 100644 --- a/compressor/test_settings.py +++ b/compressor/test_settings.py @@ -5,18 +5,17 @@ TEST_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'tests') COMPRESS_CACHE_BACKEND = 'locmem://' -if django.VERSION[:2] >= (1, 3): - DATABASES = { - 'default': { - 'ENGINE': 'django.db.backends.sqlite3', - 'NAME': ':memory:', - } +DATABASES = { + 'default': { + 'ENGINE': 'django.db.backends.sqlite3', + 'NAME': ':memory:', } -else: - DATABASE_ENGINE = 'sqlite3' +} INSTALLED_APPS = [ 'compressor', + 'coffin', + 'jingo', ] STATIC_URL = '/static/' @@ -31,6 +30,11 @@ TEMPLATE_DIRS = ( os.path.join(TEST_DIR, 'test_templates'), ) -TEST_RUNNER = 'discover_runner.DiscoverRunner' +if django.VERSION[:2] < (1, 6): + TEST_RUNNER = 'discover_runner.DiscoverRunner' SECRET_KEY = "iufoj=mibkpdz*%bob952x(%49rqgv8gg45k36kjcg76&-y5=!" + +PASSWORD_HASHERS = ( + 'django.contrib.auth.hashers.UnsaltedMD5PasswordHasher', +) |
