summaryrefslogtreecommitdiff
path: root/tests/template_tests/syntax_tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests/template_tests/syntax_tests')
-rw-r--r--tests/template_tests/syntax_tests/i18n/test_blocktranslate.py8
-rw-r--r--tests/template_tests/syntax_tests/test_if_changed.py5
2 files changed, 8 insertions, 5 deletions
diff --git a/tests/template_tests/syntax_tests/i18n/test_blocktranslate.py b/tests/template_tests/syntax_tests/i18n/test_blocktranslate.py
index 1425406960..479d1374f9 100644
--- a/tests/template_tests/syntax_tests/i18n/test_blocktranslate.py
+++ b/tests/template_tests/syntax_tests/i18n/test_blocktranslate.py
@@ -563,7 +563,9 @@ class TranslationBlockTranslateTagTests(SimpleTestCase):
@override_settings(LOCALE_PATHS=extended_locale_paths)
def test_template_tags_pgettext(self):
- """{% blocktranslate %} takes message contexts into account (#14806)."""
+ """
+ {% blocktranslate %} takes message contexts into account (#14806).
+ """
trans_real._active = Local()
trans_real._translations = {}
with translation.override("de"):
@@ -733,8 +735,8 @@ class TranslationBlockTranslateTagTests(SimpleTestCase):
def test_bad_placeholder_2(self):
"""
Error in translation file should not crash template rendering (#18393).
- (%(person) misses a 's' in fr.po, causing the string formatting to fail)
- .
+ (%(person) misses a 's' in fr.po, causing the string formatting to
+ fail) .
"""
with translation.override("fr"):
t = Template(
diff --git a/tests/template_tests/syntax_tests/test_if_changed.py b/tests/template_tests/syntax_tests/test_if_changed.py
index fb0a693460..6e5d04c225 100644
--- a/tests/template_tests/syntax_tests/test_if_changed.py
+++ b/tests/template_tests/syntax_tests/test_if_changed.py
@@ -284,8 +284,9 @@ class IfChangedTests(SimpleTestCase):
)
# Using generator to mimic concurrency.
- # The generator is not passed to the 'for' loop, because it does a list(values)
- # instead, call gen.next() in the template to control the generator.
+ # The generator is not passed to the 'for' loop, because it does a
+ # list(values) instead, call gen.next() in the template to control the
+ # generator.
def gen():
yield 1
yield 2