diff options
| author | django-bot <ops@djangoproject.com> | 2025-07-22 20:41:41 -0700 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-07-23 20:17:55 -0300 |
| commit | 69a93a88edb56ba47f624dac7a21aacc47ea474f (patch) | |
| tree | f57507a4435d032493cae40e06ecb254790b67b2 /tests/basic/tests.py | |
| parent | 55b0cc21310b76ce4018dd793ba50556eaf0af06 (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/basic/tests.py')
| -rw-r--r-- | tests/basic/tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/basic/tests.py b/tests/basic/tests.py index f6eabfaed7..f8ec2715f6 100644 --- a/tests/basic/tests.py +++ b/tests/basic/tests.py @@ -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)), |
