File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 21
21
from django_coverage_plugin .plugin import DjangoTemplatePlugin
22
22
23
23
24
- def test_settings ():
24
+ def get_test_settings ():
25
25
"""Create a dict full of default Django settings for the tests."""
26
26
the_settings = {
27
27
'CACHES' : {
@@ -56,7 +56,7 @@ def test_settings():
56
56
return the_settings
57
57
58
58
59
- settings .configure (** test_settings ())
59
+ settings .configure (** get_test_settings ())
60
60
61
61
if hasattr (django , "setup" ):
62
62
django .setup ()
Original file line number Diff line number Diff line change 5
5
6
6
from django .test .utils import override_settings
7
7
8
- from .plugin_test import DjangoPluginTestCase , test_settings
8
+ from .plugin_test import DjangoPluginTestCase , get_test_settings
9
9
10
10
# Make settings overrides for tests below.
11
11
NON_DJANGO_BACKEND = 'django.template.backends.dummy.TemplateStrings'
12
12
13
- DEBUG_FALSE_OVERRIDES = test_settings ()
13
+ DEBUG_FALSE_OVERRIDES = get_test_settings ()
14
14
DEBUG_FALSE_OVERRIDES ['TEMPLATES' ][0 ]['OPTIONS' ]['debug' ] = False
15
15
16
- NO_OPTIONS_OVERRIDES = test_settings ()
16
+ NO_OPTIONS_OVERRIDES = get_test_settings ()
17
17
del NO_OPTIONS_OVERRIDES ['TEMPLATES' ][0 ]['OPTIONS' ]
18
18
19
- OTHER_ENGINE_OVERRIDES = test_settings ()
19
+ OTHER_ENGINE_OVERRIDES = get_test_settings ()
20
20
OTHER_ENGINE_OVERRIDES ['TEMPLATES' ][0 ]['BACKEND' ] = NON_DJANGO_BACKEND
21
21
OTHER_ENGINE_OVERRIDES ['TEMPLATES' ][0 ]['OPTIONS' ] = {}
22
22
You can’t perform that action at this time.
0 commit comments