summaryrefslogtreecommitdiff
path: root/tests/admin_checks/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/admin_checks/tests.py')
-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",
)