Skip to content

Commit 68c7408

Browse files
committed
refactor(test): oops, this function looked like a test, but is not
1 parent 739306f commit 68c7408

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/plugin_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
from 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

6161
if hasattr(django, "setup"):
6262
django.setup()

tests/test_settings.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55

66
from 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.
1111
NON_DJANGO_BACKEND = 'django.template.backends.dummy.TemplateStrings'
1212

13-
DEBUG_FALSE_OVERRIDES = test_settings()
13+
DEBUG_FALSE_OVERRIDES = get_test_settings()
1414
DEBUG_FALSE_OVERRIDES['TEMPLATES'][0]['OPTIONS']['debug'] = False
1515

16-
NO_OPTIONS_OVERRIDES = test_settings()
16+
NO_OPTIONS_OVERRIDES = get_test_settings()
1717
del NO_OPTIONS_OVERRIDES['TEMPLATES'][0]['OPTIONS']
1818

19-
OTHER_ENGINE_OVERRIDES = test_settings()
19+
OTHER_ENGINE_OVERRIDES = get_test_settings()
2020
OTHER_ENGINE_OVERRIDES['TEMPLATES'][0]['BACKEND'] = NON_DJANGO_BACKEND
2121
OTHER_ENGINE_OVERRIDES['TEMPLATES'][0]['OPTIONS'] = {}
2222

0 commit comments

Comments
 (0)