Files
deb-python-django-compressor/compressor/test_settings.py
Carlton Gibson 7706baea15 Remove jingo for 1.8.
Tests don't even run without this:

File "django-compressor/.tox/py27-1.8.X/lib/python2.7/site-packages/jingo/__init__.py", line 12, in <module>
    from django.template.context import get_standard_processors
ImportError: cannot import name get_standard_processors
2015-03-10 20:01:24 +01:00

50 lines
1.0 KiB
Python

import os
import django
TEST_DIR = os.path.join(os.path.abspath(os.path.dirname(__file__)), 'tests')
CACHES = {
'default': {
'BACKEND': 'django.core.cache.backends.locmem.LocMemCache',
'LOCATION': 'unique-snowflake'
}
}
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}
INSTALLED_APPS = [
'compressor',
'coffin',
]
if django.VERSION < (1, 8):
INSTALLED_APPS.append('jingo')
STATIC_URL = '/static/'
STATIC_ROOT = os.path.join(TEST_DIR, 'static')
TEMPLATE_DIRS = (
# Specifically choose a name that will not be considered
# by app_directories loader, to make sure each test uses
# a specific template without considering the others.
os.path.join(TEST_DIR, 'test_templates'),
)
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',
)
MIDDLEWARE_CLASSES = []