update editor
[redakcja.git] / redakcja / settings / test.py
1 # -*- coding: utf-8 -*-
2 #
3 # This file is part of MIL/PEER, licensed under GNU Affero GPLv3 or later.
4 # Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
5 #
6 #
7 # Nose tests
8 #
9
10 from redakcja.settings.common import *
11 import tempfile
12
13 # ROOT_URLCONF = 'yourapp.settings.test.urls'
14
15 DATABASES = {
16     'default': {
17         'ENGINE': 'django.db.backends.sqlite3',
18         'NAME': '',                      # Or path to database file if using sqlite3.
19         'USER': '',                      # Not used with sqlite3.
20         'PASSWORD': '',                  # Not used with sqlite3.
21         'HOST': '',                      # Set to empty string for localhost. Not used with sqlite3.
22         'PORT': '',                      # Set to empty string for default. Not used with sqlite3.
23     }
24 }
25
26
27 CATALOGUE_REPO_PATH = tempfile.mkdtemp(prefix='redakcja-repo')
28 MEDIA_ROOT = tempfile.mkdtemp(prefix='media-root')
29 USE_CELERY = False
30
31 INSTALLED_APPS += ('django_nose', 'dvcs.tests')
32
33 TEST_RUNNER = 'django_nose.NoseTestSuiteRunner'
34 TEST_MODULES = ('catalogue', 'dvcs.tests', 'wiki', 'toolbar')
35 COVER_APPS = ('catalogue', 'dvcs', 'wiki', 'toolbar')
36 NOSE_ARGS = (
37     '--tests=' + ','.join(TEST_MODULES),
38     '--cover-package=' + ','.join(COVER_APPS),
39     '-d',
40     '--with-doctest',
41     '--with-xunit',
42     '--with-xcoverage',
43 )
44
45 SECRET_KEY = "not-so-secret"