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/defer | |
| 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/defer')
| -rw-r--r-- | tests/defer/tests.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/defer/tests.py b/tests/defer/tests.py index 989b5c63d7..c0968080b1 100644 --- a/tests/defer/tests.py +++ b/tests/defer/tests.py @@ -169,7 +169,8 @@ class DeferTests(AssertionMixin, TestCase): # You can retrieve a single column on a base class with no fields Child.objects.create(name="c1", value="foo", related=self.s1) obj = Child.objects.only("name").get(name="c1") - # on an inherited model, its PK is also fetched, hence '3' deferred fields. + # on an inherited model, its PK is also fetched, hence '3' deferred + # fields. self.assert_delayed(obj, 3) self.assertEqual(obj.name, "c1") self.assertEqual(obj.value, "foo") @@ -215,7 +216,8 @@ class BigChildDeferTests(AssertionMixin, TestCase): def test_only_baseclass_when_subclass_has_added_field(self): # You can retrieve a single field on a baseclass obj = BigChild.objects.only("name").get(name="b1") - # when inherited model, its PK is also fetched, hence '4' deferred fields. + # when inherited model, its PK is also fetched, hence '4' deferred + # fields. self.assert_delayed(obj, 4) self.assertEqual(obj.name, "b1") self.assertEqual(obj.value, "foo") |
