summaryrefslogtreecommitdiff
path: root/tests/admin_checks
diff options
context:
space:
mode:
authorMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-04 08:08:27 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2022-02-07 20:37:05 +0100
commit7119f40c9881666b6f9b5cf7df09ee1d21cc8344 (patch)
treefa50869f5614295f462d9bf77fec59365c621609 /tests/admin_checks
parent9c19aff7c7561e3a82978a272ecdaad40dda5c00 (diff)
downloaddjango-7119f40c9881666b6f9b5cf7df09ee1d21cc8344.tar.gz
Refs #33476 -- Refactored code to strictly match 88 characters line length.
Diffstat (limited to 'tests/admin_checks')
-rw-r--r--tests/admin_checks/tests.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/admin_checks/tests.py b/tests/admin_checks/tests.py
index a2372ba0d2..2646837bbc 100644
--- a/tests/admin_checks/tests.py
+++ b/tests/admin_checks/tests.py
@@ -564,7 +564,8 @@ class SystemChecksTestCase(SimpleTestCase):
errors = SongAdmin(Song, AdminSite()).check()
expected = [
checks.Error(
- "'ct_field' references 'nonexistent', which is not a field on 'admin_checks.Influence'.",
+ "'ct_field' references 'nonexistent', which is not a field on "
+ "'admin_checks.Influence'.",
obj=InfluenceInline,
id="admin.E302",
)
@@ -587,7 +588,8 @@ class SystemChecksTestCase(SimpleTestCase):
errors = SongAdmin(Song, AdminSite()).check()
expected = [
checks.Error(
- "'ct_fk_field' references 'nonexistent', which is not a field on 'admin_checks.Influence'.",
+ "'ct_fk_field' references 'nonexistent', which is not a field on "
+ "'admin_checks.Influence'.",
obj=InfluenceInline,
id="admin.E303",
)
@@ -865,8 +867,9 @@ class SystemChecksTestCase(SimpleTestCase):
errors = FieldsetBookAdmin(Book, AdminSite()).check()
expected = [
checks.Error(
- "The value of 'fieldsets[1][1][\"fields\"]' cannot include the ManyToManyField "
- "'authors', because that field manually specifies a relationship model.",
+ "The value of 'fieldsets[1][1][\"fields\"]' cannot include the "
+ "ManyToManyField 'authors', because that field manually specifies a "
+ "relationship model.",
obj=FieldsetBookAdmin,
id="admin.E013",
)