summaryrefslogtreecommitdiff
path: root/tests/many_to_one_null
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2025-07-22 20:41:41 -0700
committernessita <124304+nessita@users.noreply.github.com>2025-07-23 20:17:55 -0300
commit69a93a88edb56ba47f624dac7a21aacc47ea474f (patch)
treef57507a4435d032493cae40e06ecb254790b67b2 /tests/many_to_one_null
parent55b0cc21310b76ce4018dd793ba50556eaf0af06 (diff)
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.
Diffstat (limited to 'tests/many_to_one_null')
-rw-r--r--tests/many_to_one_null/tests.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/many_to_one_null/tests.py b/tests/many_to_one_null/tests.py
index f92d49f0a9..a6c56c9ada 100644
--- a/tests/many_to_one_null/tests.py
+++ b/tests/many_to_one_null/tests.py
@@ -48,7 +48,8 @@ class ManyToOneNullTests(TestCase):
# Accessing an article's 'reporter' attribute returns None
# if the reporter is set to None.
self.assertIsNone(a3.reporter)
- # To retrieve the articles with no reporters set, use "reporter__isnull=True".
+ # To retrieve the articles with no reporters set, use
+ # "reporter__isnull=True".
self.assertSequenceEqual(
Article.objects.filter(reporter__isnull=True), [self.a3]
)
@@ -78,7 +79,8 @@ class ManyToOneNullTests(TestCase):
def test_set(self):
# Use manager.set() to allocate ForeignKey. Null is legal, so existing
- # members of the set that are not in the assignment set are set to null.
+ # members of the set that are not in the assignment set are set to
+ # null.
self.r2.article_set.set([self.a2, self.a3])
self.assertSequenceEqual(self.r2.article_set.all(), [self.a2, self.a3])
# Use manager.set(clear=True)