diff options
author | sarahboyce <sarahvboyce95@gmail.com> | 2023-02-12 19:59:45 +0100 |
---|---|---|
committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2023-02-13 09:41:31 +0100 |
commit | e67804668115fd388e7554c6a809bd409f70adfe (patch) | |
tree | 968f499de4012925f3cf3c3afd272c93243e2bcd /tests/admin_views | |
parent | 69352d85fa8412865db9e0c7f177b333c0eac3e2 (diff) | |
download | django-e67804668115fd388e7554c6a809bd409f70adfe.tar.gz |
Fixed #34316 -- Fixed layout of admin password change forms and help texts.
Regression in 96a598356a9ea8c2c05b22cadc12e256a3b295fd.
Diffstat (limited to 'tests/admin_views')
-rw-r--r-- | tests/admin_views/tests.py | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 6d17279d6f..5f7aafe430 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -6549,20 +6549,20 @@ class ReadonlyTest(AdminFieldExtractionMixin, TestCase): self.assertContains(response, '<div class="help"', 3) self.assertContains( response, - '<div class="help" id="id_title_helptext">Some help text for the title ' - "(with Unicode ŠĐĆŽćžšđ)</div>", + '<div class="help" id="id_title_helptext"><div>Some help text for the ' + "title (with Unicode ŠĐĆŽćžšđ)</div></div>", html=True, ) self.assertContains( response, - '<div class="help" id="id_content_helptext">Some help text for the content ' - "(with Unicode ŠĐĆŽćžšđ)</div>", + '<div class="help" id="id_content_helptext"><div>Some help text for the ' + "content (with Unicode ŠĐĆŽćžšđ)</div></div>", html=True, ) self.assertContains( response, - '<div class="help">Some help text for the date (with Unicode ŠĐĆŽćžšđ)' - "</div>", + '<div class="help"><div>Some help text for the date (with Unicode ŠĐĆŽćžšđ)' + "</div></div>", html=True, ) @@ -6744,7 +6744,7 @@ class ReadonlyTest(AdminFieldExtractionMixin, TestCase): ) self.assertContains( response, - '<div class="help">Overridden help text for the date</div>', + '<div class="help"><div>Overridden help text for the date</div></div>', html=True, ) self.assertContains( |