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/get_or_create | |
| 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/get_or_create')
| -rw-r--r-- | tests/get_or_create/tests.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/get_or_create/tests.py b/tests/get_or_create/tests.py index 59f84be221..d4e03d4461 100644 --- a/tests/get_or_create/tests.py +++ b/tests/get_or_create/tests.py @@ -125,7 +125,8 @@ class GetOrCreateTests(TestCase): # Create an Author not tied to any books. Author.objects.create(name="Ted") - # There should be three Authors in total. The book object should have two. + # There should be three Authors in total. The book object should have + # two. self.assertEqual(Author.objects.count(), 3) self.assertEqual(book.authors.count(), 2) @@ -371,9 +372,9 @@ class UpdateOrCreateTests(TestCase): def test_error_contains_full_traceback(self): """ update_or_create should raise IntegrityErrors with the full traceback. - This is tested by checking that a known method call is in the traceback. - We cannot use assertRaises/assertRaises here because we need to inspect - the actual traceback. Refs #16340. + This is tested by checking that a known method call is in the + traceback. We cannot use assertRaises/assertRaises here because we need + to inspect the actual traceback. Refs #16340. """ try: ManualPrimaryKeyTest.objects.update_or_create(id=1, data="Different") |
