Simplify settings loading a bit. Remove the things which haven't been working for...
[redakcja.git] / src / redakcja / settings / test.py
1 #
2 # Nose tests
3 #
4
5 from redakcja.settings import *
6
7 DATABASES = {
8     'default': {
9         'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
10         'NAME': '', # Or path to database file if using sqlite3.
11         'USER': '',                      # Not used with sqlite3.
12         'PASSWORD': '',                  # Not used with sqlite3.
13         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
14         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
15     }
16 }
17 import tempfile
18
19 CATALOGUE_REPO_PATH = tempfile.mkdtemp(prefix='redakcja-repo')
20 CATALOGUE_IMAGE_REPO_PATH = tempfile.mkdtemp(prefix='redakcja-repo-img')
21 MEDIA_ROOT = tempfile.mkdtemp(prefix='media-root')
22 CELERY_ALWAYS_EAGER = True
23
24 INSTALLED_APPS += ('dvcs.tests',)
25
26 SECRET_KEY = "not-so-secret"
27
28
29 LITERARY_DIRECTOR_USERNAME = 'Kaowiec'