tests fixes
[redakcja.git] / redakcja / settings / test.py
1 #
2 # Nose tests
3 #
4
5 from redakcja.settings.common import *
6
7 # ROOT_URLCONF = 'yourapp.settings.test.urls'
8
9 DATABASES = {
10     'default': {
11         'ENGINE': 'django.db.backends.sqlite3', # Add 'postgresql_psycopg2', 'postgresql', 'mysql', 'sqlite3' or 'oracle'.
12         'NAME': '', # Or path to database file if using sqlite3.
13         'USER': '',                      # Not used with sqlite3.
14         'PASSWORD': '',                  # Not used with sqlite3.
15         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
16         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
17     }
18 }
19
20 import tempfile
21
22 CATALOGUE_REPO_PATH = tempfile.mkdtemp(prefix='redakcja-repo')
23
24 INSTALLED_APPS += ('django_nose', 'dvcs.tests')
25
26 TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
27 TEST_MODULES = ('catalogue', 'dvcs.tests', 'wiki', 'toolbar')
28 #COVER_APPS = ('catalogue', 'dvcs', 'wiki', 'toolbar')
29 NOSE_ARGS = (
30     '--tests=' + ','.join(TEST_MODULES),
31     '--cover-package=' + ','.join(TEST_MODULES),
32     '-d',
33     '--with-doctest',
34     '--with-xunit',
35     '--with-xcoverage',
36 )