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:
django-bot 2025-07-22 20:41:41 -07:00 committed by nessita
parent 55b0cc2131
commit 69a93a88ed
378 changed files with 2781 additions and 1861 deletions

View file

@ -174,7 +174,8 @@ class LookupTests(TestCase):
)
def test_in_bulk(self):
# in_bulk() takes a list of IDs and returns a dictionary mapping IDs to objects.
# in_bulk() takes a list of IDs and returns a dictionary mapping IDs to
# objects.
arts = Article.objects.in_bulk([self.a1.id, self.a2.id])
self.assertEqual(arts[self.a1.id], self.a1)
self.assertEqual(arts[self.a2.id], self.a2)
@ -375,7 +376,8 @@ class LookupTests(TestCase):
{"headline": "Article 1", "id": self.a1.id},
],
)
# The values() method works with "extra" fields specified in extra(select).
# The values() method works with "extra" fields specified in
# extra(select).
self.assertSequenceEqual(
Article.objects.extra(select={"id_plus_one": "id + 1"}).values(
"id", "id_plus_one"
@ -415,7 +417,8 @@ class LookupTests(TestCase):
}
],
)
# You can specify fields from forward and reverse relations, just like filter().
# You can specify fields from forward and reverse relations, just like
# filter().
self.assertSequenceEqual(
Article.objects.values("headline", "author__name"),
[
@ -660,8 +663,9 @@ class LookupTests(TestCase):
)
def test_escaping(self):
# Underscores, percent signs and backslashes have special meaning in the
# underlying SQL code, but Django handles the quoting of them automatically.
# Underscores, percent signs and backslashes have special meaning in
# the underlying SQL code, but Django handles the quoting of them
# automatically.
a8 = Article.objects.create(
headline="Article_ with underscore", pub_date=datetime(2005, 11, 20)
)