summaryrefslogtreecommitdiff
path: root/tests/auth_tests/test_views.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auth_tests/test_views.py')
-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 5ea536151e..87022fd290 100644
--- a/tests/auth_tests/test_views.py
+++ b/tests/auth_tests/test_views.py
@@ -214,7 +214,7 @@ class PasswordResetTest(AuthViewsTestCase):
response = self.client.post(
"/password_reset/",
{"email": "staffmember@example.com"},
- HTTP_HOST="www.example:dr.frankenstein@evil.tld",
+ headers={"host": "www.example:dr.frankenstein@evil.tld"},
)
self.assertEqual(response.status_code, 400)
self.assertEqual(len(mail.outbox), 0)
@@ -227,7 +227,7 @@ class PasswordResetTest(AuthViewsTestCase):
response = self.client.post(
"/admin_password_reset/",
{"email": "staffmember@example.com"},
- HTTP_HOST="www.example:dr.frankenstein@evil.tld",
+ headers={"host": "www.example:dr.frankenstein@evil.tld"},
)
self.assertEqual(response.status_code, 400)
self.assertEqual(len(mail.outbox), 0)