mirror of
https://github.com/django/django.git
synced 2025-11-18 19:01:40 +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:
parent
55b0cc2131
commit
69a93a88ed
378 changed files with 2781 additions and 1861 deletions
|
|
@ -73,7 +73,8 @@ class ManyToManyTests(TestCase):
|
|||
with transaction.atomic():
|
||||
a6.publications.add(a5)
|
||||
|
||||
# Add a Publication directly via publications.add by using keyword arguments.
|
||||
# Add a Publication directly via publications.add by using keyword
|
||||
# arguments.
|
||||
p5 = a6.publications.create(title="Highlights for Adults")
|
||||
self.assertSequenceEqual(
|
||||
a6.publications.all(),
|
||||
|
|
@ -256,8 +257,8 @@ class ManyToManyTests(TestCase):
|
|||
[self.a1, self.a3, self.a2, self.a4],
|
||||
)
|
||||
|
||||
# Excluding a related item works as you would expect, too (although the SQL
|
||||
# involved is a little complex).
|
||||
# Excluding a related item works as you would expect, too (although the
|
||||
# SQL involved is a little complex).
|
||||
self.assertSequenceEqual(
|
||||
Article.objects.exclude(publications=self.p2),
|
||||
[self.a1],
|
||||
|
|
@ -324,7 +325,8 @@ class ManyToManyTests(TestCase):
|
|||
)
|
||||
|
||||
def test_bulk_delete(self):
|
||||
# Bulk delete some Publications - references to deleted publications should go
|
||||
# Bulk delete some Publications - references to deleted publications
|
||||
# should go
|
||||
Publication.objects.filter(title__startswith="Science").delete()
|
||||
self.assertSequenceEqual(
|
||||
Publication.objects.all(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue