summaryrefslogtreecommitdiff
path: root/tests/auth_tests
diff options
context:
space:
mode:
authorSaJH <wogur981208@gmail.com>2024-10-16 01:11:46 +0900
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-10-16 11:52:22 +0200
commit0c8177551500e960d2dc04bc4b0fa7060f9172ae (patch)
tree1453b4739431a2efeebd2d2db4f9141e1d064769 /tests/auth_tests
parent4a685bc0dca5298a7d5a4e162120a90cac7fd1a4 (diff)
Refs #35727 -- Updated response.content.decode calls to use the HttpResponse.text property.
Signed-off-by: SaJH <wogur981208@gmail.com>
Diffstat (limited to 'tests/auth_tests')
-rw-r--r--tests/auth_tests/test_views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auth_tests/test_views.py b/tests/auth_tests/test_views.py
index 97d0448ab1..98fdfe79b7 100644
--- a/tests/auth_tests/test_views.py
+++ b/tests/auth_tests/test_views.py
@@ -1521,7 +1521,7 @@ class ChangelistTests(MessagesTestMixin, AuthViewsTestCase):
# Test the link inside password field help_text.
rel_link = re.search(
r'<a class="button" href="([^"]*)">Reset password</a>',
- response.content.decode(),
+ response.text,
)[1]
self.assertEqual(urljoin(user_change_url, rel_link), password_change_url)
@@ -1617,7 +1617,7 @@ class ChangelistTests(MessagesTestMixin, AuthViewsTestCase):
# Test the link inside password field help_text.
rel_link = re.search(
r'<a class="button" href="([^"]*)">Set password</a>',
- response.content.decode(),
+ response.text,
)[1]
self.assertEqual(urljoin(user_change_url, rel_link), password_change_url)