diff options
author | Raphaël Hertzog <hertzog@debian.org> | 2014-08-06 11:34:01 +0000 |
---|---|---|
committer | Raphaël Hertzog <hertzog@debian.org> | 2014-08-06 11:34:01 +0000 |
commit | 7d60a345ce793c9c1a8a4d0479b2ea10ec89cb7f (patch) | |
tree | a23d782abe0dd1327d2bacc71500e3cb938965c0 /debian/patches/fix-testsuite.patch | |
parent | eec62e21bde4d19c3665ec814d5389c45b5d4198 (diff) | |
download | python-django-tagging-7d60a345ce793c9c1a8a4d0479b2ea10ec89cb7f.tar python-django-tagging-7d60a345ce793c9c1a8a4d0479b2ea10ec89cb7f.tar.gz |
* Add fix-testsuite.patch and now run the testsuite.
* Add django-1.7-compat.patch to make it work with Django 1.7.
Closes: #755624
Diffstat (limited to 'debian/patches/fix-testsuite.patch')
-rw-r--r-- | debian/patches/fix-testsuite.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/debian/patches/fix-testsuite.patch b/debian/patches/fix-testsuite.patch new file mode 100644 index 0000000..11de6c2 --- /dev/null +++ b/debian/patches/fix-testsuite.patch @@ -0,0 +1,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', |