style
[redakcja.git] / redakcja / settings / test.py
1 # -*- coding: utf-8 -*-
2 #
3 # Nose tests
4 #
5
6 from redakcja.settings.common import *
7
8 # ROOT_URLCONF = 'yourapp.settings.test.urls'
9
10 DATABASES = {
11     'default': {
12         'ENGINE': 'django.db.backends.sqlite3',
13         'NAME': '',
14         'USER': '',                      # Not used with sqlite3.
15         'PASSWORD': '',                  # Not used with sqlite3.
16         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
17         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
18     }
19 }
20
21 import tempfile
22
23 CATALOGUE_REPO_PATH = tempfile.mkdtemp(prefix='redakcja-repo')
24 MEDIA_ROOT = tempfile.mkdtemp(prefix='media-root')
25 USE_CELERY = False
26
27 INSTALLED_APPS += ('django_nose', 'dvcs.tests')
28
29 TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
30 TEST_MODULES = ('catalogue', 'cover', 'dvcs.tests', 'wiki', 'toolbar')
31 COVER_APPS = ('catalogue', 'cover', 'dvcs', 'wiki', 'toolbar')
32 NOSE_ARGS = (
33     '--tests=' + ','.join(TEST_MODULES),
34     '--cover-package=' + ','.join(COVER_APPS),
35     '-d',
36     '--with-doctest',
37     '--with-xunit',
38     '--with-xcoverage',
39 )
40
41 SECRET_KEY = "not-so-secret"