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 2121from django_coverage_plugin .plugin import DjangoTemplatePlugin
2222
2323
24- def test_settings ():
24+ def get_test_settings ():
2525 """Create a dict full of default Django settings for the tests."""
2626 the_settings = {
2727 'CACHES' : {
@@ -56,7 +56,7 @@ def test_settings():
5656 return the_settings
5757
5858
59- settings .configure (** test_settings ())
59+ settings .configure (** get_test_settings ())
6060
6161if hasattr (django , "setup" ):
6262 django .setup ()
Original file line number Diff line number Diff line change 55
66from django .test .utils import override_settings
77
8- from .plugin_test import DjangoPluginTestCase , test_settings
8+ from .plugin_test import DjangoPluginTestCase , get_test_settings
99
1010# Make settings overrides for tests below.
1111NON_DJANGO_BACKEND = 'django.template.backends.dummy.TemplateStrings'
1212
13- DEBUG_FALSE_OVERRIDES = test_settings ()
13+ DEBUG_FALSE_OVERRIDES = get_test_settings ()
1414DEBUG_FALSE_OVERRIDES ['TEMPLATES' ][0 ]['OPTIONS' ]['debug' ] = False
1515
16- NO_OPTIONS_OVERRIDES = test_settings ()
16+ NO_OPTIONS_OVERRIDES = get_test_settings ()
1717del NO_OPTIONS_OVERRIDES ['TEMPLATES' ][0 ]['OPTIONS' ]
1818
19- OTHER_ENGINE_OVERRIDES = test_settings ()
19+ OTHER_ENGINE_OVERRIDES = get_test_settings ()
2020OTHER_ENGINE_OVERRIDES ['TEMPLATES' ][0 ]['BACKEND' ] = NON_DJANGO_BACKEND
2121OTHER_ENGINE_OVERRIDES ['TEMPLATES' ][0 ]['OPTIONS' ] = {}
2222
You can’t perform that action at this time.
0 commit comments