Files
deb-python-django-compressor/compressor/test_settings.py
Jannis Leidel 7529b033c3 Merge branch 'develop' of github.com:jezdez/django_compressor into develop
Conflicts:
	compressor/test_settings.py
2012-05-19 13:27:57 +02:00

39 lines
866 B
Python

import os
import django
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:',
}
}
else:
DATABASE_ENGINE = 'sqlite3'
INSTALLED_APPS = [
'compressor',
'django_nose',
]
MEDIA_URL = '/media/'
STATIC_URL = MEDIA_URL
MEDIA_ROOT = os.path.join(TEST_DIR, 'media')
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'),
)
TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
SECRET_KEY = "iufoj=mibkpdz*%bob952x(%49rqgv8gg45k36kjcg76&-y5=!"