summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_templates.py
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2020-11-10 21:32:15 +0100
committerGitHub <noreply@github.com>2020-11-10 21:32:15 +0100
commit187482d743c1bf27e32b43f37314607248106af4 (patch)
tree0233b9919611e34576f97dbf1b163c5a08785d55 /tests/auth_tests/test_templates.py
parent4cd77f97a2d30d58841041a73d277ec4bfb7b530 (diff)
Avoided direct styles in admin templates.
Direct styles might be forbidden by Content Security Policies.
Diffstat (limited to 'tests/auth_tests/test_templates.py')
-rw-r--r--tests/auth_tests/test_templates.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auth_tests/test_templates.py b/tests/auth_tests/test_templates.py
index b9db10763c..866e4bd355 100644
--- a/tests/auth_tests/test_templates.py
+++ b/tests/auth_tests/test_templates.py
@@ -56,7 +56,7 @@ class AuthTemplateTests(TestCase):
# browser's password managers.
self.assertContains(
response,
- '<input style="display: none;" autocomplete="username" value="jsmith">',
+ '<input class="hidden" autocomplete="username" value="jsmith">',
)
def test_PasswordResetCompleteView(self):