Skip to content

Commit 2e564f5

Browse files
committed
Yet more TEMPLATE_STRING_IF_INVALID removals
1 parent 002be61 commit 2e564f5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pytest_django/plugin.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,6 @@ def __init__(self):
597597
self.fail = True
598598

599599
def __contains__(self, key):
600-
"""There is a test for '%s' in TEMPLATE_STRING_IF_INVALID."""
601600
return key == "%s"
602601

603602
@staticmethod
@@ -635,7 +634,6 @@ def _get_origin():
635634
return template.name
636635

637636
def __mod__(self, var):
638-
"""Handle TEMPLATE_STRING_IF_INVALID % var."""
639637
origin = self._get_origin()
640638
if origin:
641639
msg = "Undefined template variable '{}' in '{}'".format(var, origin)
@@ -667,8 +665,6 @@ def _template_string_if_invalid_marker(request):
667665

668666
if dj_settings.TEMPLATES:
669667
dj_settings.TEMPLATES[0]["OPTIONS"]["string_if_invalid"].fail = False
670-
else:
671-
dj_settings.TEMPLATE_STRING_IF_INVALID.fail = False
672668

673669

674670
@pytest.fixture(autouse=True, scope="function")

0 commit comments

Comments
 (0)