[Python-modules-commits] [djangorestframework-gis] 09/12: Do not import local settings for tests.

Michael Fladischer fladi at moszumanska.debian.org
Thu Jan 7 11:46:56 UTC 2016


This is an automated email from the git hooks/post-receive script.

fladi pushed a commit to branch master
in repository djangorestframework-gis.

commit f87e07883c1e34ec00586079ac524c922de288df
Author: Michael Fladischer <FladischerMichael at fladi.at>
Date:   Thu Jan 7 12:23:10 2016 +0100

    Do not import local settings for tests.
---
 tests/settings.py | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/tests/settings.py b/tests/settings.py
index d9edb92..0299ffc 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -55,9 +55,3 @@ STATIC_URL = '/static/'
 ANONYMOUS_USER_ID=-1
 
 TEMPLATE_STRING_IF_INVALID = 'INVALID_TEMPLATE: %s END_INVALID_TEMPLATE'
-
-# local settings must be imported before test runner otherwise they'll be ignored
-try:
-    from local_settings import *
-except ImportError:
-    pass

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/djangorestframework-gis.git



More information about the Python-modules-commits mailing list