X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1a0d01d9cdbffcf9667562502c3d2e36e5a9fa5b..b9055c7fc8caed025fd28c12532bd462edb8c78d:/redakcja/settings/test.py?ds=sidebyside diff --git a/redakcja/settings/test.py b/redakcja/settings/test.py new file mode 100644 index 00000000..118c7ffb --- /dev/null +++ b/redakcja/settings/test.py @@ -0,0 +1,28 @@ +# +# Nose tests +# + +from redakcja.settings.common import * + +# ROOT_URLCONF = 'yourapp.settings.test.urls' + +DATABASE_ENGINE = 'sqlite3' +DATABASE_NAME = ':memory:' + +import tempfile + +WIKI_REPOSITORY_PATH = tempfile.mkdtemp(prefix='wikirepo') + +INSTALLED_APPS += ('django_nose',) + +TEST_RUNNER = 'django_nose.run_tests' +TEST_MODULES = ('wiki', 'toolbar', 'vstorage') +NOSE_ARGS = ( + '--tests=' + ','.join(TEST_MODULES), + '--cover-package=' + ','.join(TEST_MODULES), + '-d', + '--with-coverage', + '--with-doctest', + '--with-xunit', + '--with-xcoverage', +)