File: 0001-Do-not-import-local-settings-for-tests.patch

package info (click to toggle)
djangorestframework-gis 1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 512 kB
  • sloc: python: 4,069; sh: 14; makefile: 4
file content (22 lines) | stat: -rw-r--r-- 686 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
From: Michael Fladischer <FladischerMichael@fladi.at>
Date: Thu, 7 Jan 2016 12:23:10 +0100
Subject: 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 e4e05d1..a148db4 100644
--- a/tests/settings.py
+++ b/tests/settings.py
@@ -78,9 +78,3 @@ TEMPLATE_STRING_IF_INVALID = 'INVALID_TEMPLATE: %s END_INVALID_TEMPLATE'
 REST_FRAMEWORK = {
     'DEFAULT_SCHEMA_CLASS': 'rest_framework_gis.schema.GeoFeatureAutoSchema',
 }
-
-# local settings must be imported before test runner otherwise they'll be ignored
-try:
-    from local_settings import *
-except ImportError:
-    pass