diff options
| author | Mike Edmunds <medmunds@gmail.com> | 2025-07-22 20:40:48 -0700 |
|---|---|---|
| committer | nessita <124304+nessita@users.noreply.github.com> | 2025-07-23 20:17:55 -0300 |
| commit | 55b0cc21310b76ce4018dd793ba50556eaf0af06 (patch) | |
| tree | b56d75363688b6ac34f7e9a773c793d79750104b /tests/delete | |
| parent | 5527df91921b54b9fd1eb9aca3aabe91ec58a9c7 (diff) | |
Refs #36500 -- Shortened some long docstrings and comments.
Manually reformatted some long docstrings and comments that would be
damaged by the to-be-applied autofixer script, in cases where editorial
judgment seemed necessary for style or wording changes.
Diffstat (limited to 'tests/delete')
| -rw-r--r-- | tests/delete/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/delete/tests.py b/tests/delete/tests.py index e24c222063..09c9a0a818 100644 --- a/tests/delete/tests.py +++ b/tests/delete/tests.py @@ -493,7 +493,7 @@ class DeletionTests(TestCase): # and there are no more cascades. # 1 query to find the users for the avatar. # 1 query to delete the user - # 1 query to null out user.avatar, because we can't defer the constraint + # 1 query to null out user.avatar, since we can't defer the constraint # 1 query to delete the avatar self.assertNumQueries(4, a.delete) self.assertFalse(User.objects.exists()) @@ -536,7 +536,7 @@ class DeletionTests(TestCase): # TEST_SIZE / batch_size (select related `T` instances) # + 1 (select related `U` instances) - # + TEST_SIZE / GET_ITERATOR_CHUNK_SIZE (delete `T` instances in batches) + # + TEST_SIZE / GET_ITERATOR_CHUNK_SIZE (delete `T` matches in batches) # + 1 (delete `s`) expected_num_queries = ceil(TEST_SIZE / batch_size) expected_num_queries += ceil(TEST_SIZE / GET_ITERATOR_CHUNK_SIZE) + 2 |
