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

Michael Fladischer fladi at moszumanska.debian.org
Wed Nov 23 21:05:49 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 a54af50f2774f3ca35fa4326c0bcf84dd3325d44
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 c628f97..0fb4e30 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -75,9 +75,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