summaryrefslogtreecommitdiff
path: root/tests/admin_inlines
diff options
context:
space:
mode:
authordjango-bot <ops@djangoproject.com>2025-07-22 20:41:41 -0700
committernessita <124304+nessita@users.noreply.github.com>2025-07-23 20:17:55 -0300
commit69a93a88edb56ba47f624dac7a21aacc47ea474f (patch)
treef57507a4435d032493cae40e06ecb254790b67b2 /tests/admin_inlines
parent55b0cc21310b76ce4018dd793ba50556eaf0af06 (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/admin_inlines')
-rw-r--r--tests/admin_inlines/tests.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/admin_inlines/tests.py b/tests/admin_inlines/tests.py
index 63e7393853..0b73089950 100644
--- a/tests/admin_inlines/tests.py
+++ b/tests/admin_inlines/tests.py
@@ -241,7 +241,10 @@ class TestInline(TestDataMixin, TestCase):
)
def test_no_parent_callable_lookup(self):
- """Admin inline `readonly_field` shouldn't invoke parent ModelAdmin callable"""
+ """
+ Admin inline `readonly_field` shouldn't invoke parent ModelAdmin
+ callable
+ """
# Identically named callable isn't present in the parent ModelAdmin,
# rendering of the add view shouldn't explode
response = self.client.get(reverse("admin:admin_inlines_novel_add"))
@@ -324,7 +327,9 @@ class TestInline(TestDataMixin, TestCase):
self.assertContains(response, "Label from ModelForm.Meta")
def test_inline_hidden_field_no_column(self):
- """#18263 -- Make sure hidden fields don't get a column in tabular inlines"""
+ """
+ #18263 -- Make sure hidden fields don't get a column in tabular inlines
+ """
parent = SomeParentModel.objects.create(name="a")
SomeChildModel.objects.create(name="b", position="0", parent=parent)
SomeChildModel.objects.create(name="c", position="1", parent=parent)
@@ -1232,7 +1237,8 @@ class TestInlinePermissions(TestCase):
)
self.user.user_permissions.add(permission)
response = self.client.get(self.holder_change_url)
- # Change permission on inner2s, so we can change existing but not add new
+ # Change permission on inner2s, so we can change existing but not add
+ # new
self.assertContains(
response,
'<h2 id="inner2_set-heading" class="inline-heading">Inner2s</h2>',