diff options
| author | Claude Paroz <claude@2xlibre.net> | 2020-11-10 21:32:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-10 21:32:15 +0100 |
| commit | 187482d743c1bf27e32b43f37314607248106af4 (patch) | |
| tree | 0233b9919611e34576f97dbf1b163c5a08785d55 /tests/admin_views | |
| parent | 4cd77f97a2d30d58841041a73d277ec4bfb7b530 (diff) | |
Avoided direct styles in admin templates.
Direct styles might be forbidden by Content Security Policies.
Diffstat (limited to 'tests/admin_views')
| -rw-r--r-- | tests/admin_views/tests.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index c958a9c955..6f47465c4a 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -1170,7 +1170,7 @@ class AdminCustomTemplateTests(AdminViewBasicTestCase): # When a site has multiple passwords in the browser's password manager, # a browser pop up asks which user the new password is for. To prevent # this, the username is added to the change password form. - self.assertContains(response, '<input type="text" name="username" value="super" style="display: none">') + self.assertContains(response, '<input type="text" name="username" value="super" class="hidden">') def test_extended_bodyclass_template_index(self): """ |
