summaryrefslogtreecommitdiffstats
path: root/hyperkitty/tests_conf/settings_tests.py
diff options
context:
space:
mode:
authorAurélien Bompard <aurelien@bompard.org>2013-02-19 12:55:12 +0100
committerAurélien Bompard <aurelien@bompard.org>2013-02-19 12:56:02 +0100
commit2147fa8cc8b2015b852f3dc4fca953034e7a5d8b (patch)
tree341526c564cde20b6bddfa994cc3dafb7cabb906 /hyperkitty/tests_conf/settings_tests.py
parent9501fd6ee6f8aa00a9614c00b49834d51c7c3481 (diff)
downloadhyperkitty-2147fa8cc8b2015b852f3dc4fca953034e7a5d8b.tar.gz
hyperkitty-2147fa8cc8b2015b852f3dc4fca953034e7a5d8b.tar.xz
hyperkitty-2147fa8cc8b2015b852f3dc4fca953034e7a5d8b.zip
Fix running the unit tests in the spec file
Diffstat (limited to 'hyperkitty/tests_conf/settings_tests.py')
-rw-r--r--hyperkitty/tests_conf/settings_tests.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/hyperkitty/tests_conf/settings_tests.py b/hyperkitty/tests_conf/settings_tests.py
new file mode 100644
index 0000000..6941109
--- /dev/null
+++ b/hyperkitty/tests_conf/settings_tests.py
@@ -0,0 +1,19 @@
+#
+# This module is only used to run the unit tests.
+#
+
+DEBUG = True
+TEMPLATE_DEBUG = DEBUG
+DATABASES = {
+ 'default': {
+ 'ENGINE': 'django.db.backends.sqlite3',
+ 'NAME': ':memory:',
+ 'USER': '', # Not used with sqlite3.
+ 'PASSWORD': '', # Not used with sqlite3.
+ 'HOST': '', # Set to empty string for localhost. Not used with sqlite3.
+ 'PORT': '', # Set to empty string for default. Not used with sqlite3.
+ }
+}
+KITTYSTORE_URL = 'sqlite:'
+KITTYSTORE_DEBUG=False
+USE_MOCKUPS = False