From 3278c31fa59b41d03aea167f4cf85f4ddf7f848d Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Tue, 8 Feb 2022 12:27:04 +0100 Subject: [4.0.x] Refs #33476 -- Refactored code to strictly match 88 characters line length. Backport of 7119f40c9881666b6f9b5cf7df09ee1d21cc8344 from main. --- tests/admin_docs/test_views.py | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'tests/admin_docs/test_views.py') diff --git a/tests/admin_docs/test_views.py b/tests/admin_docs/test_views.py index 99a5ad3488..504f03dff3 100644 --- a/tests/admin_docs/test_views.py +++ b/tests/admin_docs/test_views.py @@ -54,7 +54,8 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase): response = self.client.get(reverse("django-admindocs-views-index")) self.assertContains( response, - '

/admindocs/

', + '

/admindocs/

', html=True, ) self.assertContains(response, "Views by namespace test") @@ -73,7 +74,9 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase): response = self.client.get(reverse("django-admindocs-views-index")) self.assertContains( response, - '

/admin/

', + "

" + '' + "/admin/

", html=True, ) @@ -118,7 +121,8 @@ class AdminDocViewTests(TestDataMixin, AdminDocsTestCase): response = self.client.get(reverse("django-admindocs-models-index")) self.assertContains( response, - '

Authentication and Authorization (django.contrib.auth)

', + '

Authentication and Authorization (django.contrib.auth)' + "

", html=True, ) @@ -380,11 +384,15 @@ class TestModelDetailView(TestDataMixin, AdminDocsTestCase): def test_model_docstring_renders_correctly(self): summary = ( - '

Stores information about a person, related to myapp.Company.

' + '

Stores information about a person, related to ' + '' + "myapp.Company.

" ) subheading = "

Notes

" - body = '

Use save_changes() when saving this object.

' + body = ( + '

Use save_changes() when saving this ' + "object.

" + ) model_body = ( '
company
Field storing