mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
Refs #36500 -- Rewrapped long docstrings and block comments via a script.
Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505.
This commit is contained in:
@@ -296,7 +296,8 @@ class FunctionTests(SimpleTestCase):
|
||||
|
||||
def test_trailing_period(self):
|
||||
"""
|
||||
#18644 - Check urlize trims trailing period when followed by parenthesis
|
||||
#18644 - Check urlize trims trailing period when followed by
|
||||
parenthesis
|
||||
"""
|
||||
self.assertEqual(
|
||||
urlize("(Go to http://www.example.com/foo.)"),
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -32,9 +32,9 @@ def div_custom_end(content):
|
||||
|
||||
@register.filter
|
||||
def noop(value, param=None):
|
||||
"""A noop filter that always return its first argument and does nothing with
|
||||
its second (optional) one.
|
||||
Useful for testing out whitespace in filter arguments (see #19882)."""
|
||||
"""A noop filter that always return its first argument and does nothing
|
||||
with its second (optional) one. Useful for testing out whitespace in filter
|
||||
arguments (see #19882)."""
|
||||
return value
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user