mirror of
https://github.com/django/django.git
synced 2025-10-24 14:16:09 +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:
@@ -179,7 +179,8 @@ class ModelInstanceCreationTests(TestCase):
|
||||
|
||||
# You can use 'in' to test for membership...
|
||||
self.assertIn(a, Article.objects.all())
|
||||
# ... but there will often be more efficient ways if that is all you need:
|
||||
# ... but there will often be more efficient ways if that is all you
|
||||
# need:
|
||||
self.assertTrue(Article.objects.filter(id=a.id).exists())
|
||||
|
||||
def test_save_primary_with_default(self):
|
||||
@@ -785,7 +786,8 @@ class ManagerTest(SimpleTestCase):
|
||||
|
||||
It's particularly useful to prevent accidentally leaking new methods
|
||||
into `Manager`. New `QuerySet` methods that should also be copied onto
|
||||
`Manager` will need to be added to `ManagerTest.QUERYSET_PROXY_METHODS`.
|
||||
`Manager` will need to be added to
|
||||
`ManagerTest.QUERYSET_PROXY_METHODS`.
|
||||
"""
|
||||
self.assertEqual(
|
||||
sorted(BaseManager._get_queryset_methods(models.QuerySet)),
|
||||
|
||||
Reference in New Issue
Block a user