aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaphaƫl Hertzog <hertzog@debian.org>2015-10-08 11:51:54 -0700
committerSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 11:51:54 -0700
commitf50f19a1d9495ca98bf0e5de941ab9c21bcdbf91 (patch)
tree1c46de1c2159732e809e7eb4d95b0b8949ed1d8f
parente54ad0924908aec2a7970c957551787875317b2b (diff)
downloadpython-django-tagging-f50f19a1d9495ca98bf0e5de941ab9c21bcdbf91.tar
python-django-tagging-f50f19a1d9495ca98bf0e5de941ab9c21bcdbf91.tar.gz
Fix settings for test suite
Origin: vendor Patch-Name: fix-testsuite.patch
-rw-r--r--tagging/tests/settings.py22
1 files changed, 7 insertions, 15 deletions
diff --git a/tagging/tests/settings.py b/tagging/tests/settings.py
index 74eb909..1985118 100644
--- a/tagging/tests/settings.py
+++ b/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',