diff options
| author | SaJH <wogur981208@gmail.com> | 2024-10-16 01:11:46 +0900 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2024-10-16 11:52:22 +0200 |
| commit | 0c8177551500e960d2dc04bc4b0fa7060f9172ae (patch) | |
| tree | 1453b4739431a2efeebd2d2db4f9141e1d064769 /tests/auth_tests | |
| parent | 4a685bc0dca5298a7d5a4e162120a90cac7fd1a4 (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.py | 4 |
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) |
