aboutsummaryrefslogtreecommitdiff
path: root/debian/patches/fix-testsuite.patch
blob: 11de6c208dda9cf091b128e4d7f9cf40a29c80fd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Description: Fix settings for test suite
Author: Rapha�l Hertzog <hertzog@debian.org>
Origin: vendor

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format.
--- python-django-tagging-0.3.1.orig/tagging/tests/settings.py
+++ python-django-tagging-0.3.1/tagging/tests/settings.py
@@ -3,22 +3,14 @@ DIRNAME = os.path.dirname(__file__)
 
 DEFAULT_CHARSET = 'utf-8'
 
-test_engine = os.environ.get("TAGGING_TEST_ENGINE", "sqlite3")
-
-DATABASE_ENGINE = test_engine
-DATABASE_NAME = os.environ.get("TAGGING_DATABASE_NAME", "tagging_test")
-DATABASE_USER = os.environ.get("TAGGING_DATABASE_USER", "")
-DATABASE_PASSWORD = os.environ.get("TAGGING_DATABASE_PASSWORD", "")
-DATABASE_HOST = os.environ.get("TAGGING_DATABASE_HOST", "localhost")
-
-if test_engine == "sqlite":
-    DATABASE_NAME = os.path.join(DIRNAME, 'tagging_test.db')
-    DATABASE_HOST = ""
-elif test_engine == "mysql":
-    DATABASE_PORT = os.environ.get("TAGGING_DATABASE_PORT", 3306)
-elif test_engine == "postgresql_psycopg2":
-    DATABASE_PORT = os.environ.get("TAGGING_DATABASE_PORT", 5432)
+DATABASES = {
+    'default': {
+        'ENGINE': 'django.db.backends.sqlite3',
+        'NAME': os.path.join(DIRNAME, 'tagging_test.db'),
+    }
+}
 
+SECRET_KEY = 'liewoo1jie7TahTao3ci7xayee8gieg9ukee'
 
 INSTALLED_APPS = (
     'django.contrib.contenttypes',