aboutsummaryrefslogtreecommitdiff
path: root/tagging/tests/settings.py
diff options
context:
space:
mode:
authorSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 11:51:55 -0700
committerSVN-Git Migration <python-modules-team@lists.alioth.debian.org>2015-10-08 11:51:55 -0700
commit35be9c9e0402be9c2311371cdcaf145e36509503 (patch)
tree93e03d19b48e3244241d34978c4bf4dd271a10e5 /tagging/tests/settings.py
parent3aa44e2aeb51a52cf63deb8c9537971a81b631fd (diff)
parent210bfd7f97afe0162e682cbd2530115cf09fd51d (diff)
downloadpython-django-tagging-35be9c9e0402be9c2311371cdcaf145e36509503.tar
python-django-tagging-35be9c9e0402be9c2311371cdcaf145e36509503.tar.gz
Initialize git-dpm
Diffstat (limited to 'tagging/tests/settings.py')
-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',