summaryrefslogtreecommitdiff
path: root/tests/logging_tests
diff options
context:
space:
mode:
authorDavid Wobrock <david.wobrock@gmail.com>2022-12-24 00:10:25 +0100
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2023-01-04 09:11:36 +0100
commit99bd5fb4c2d51f7bf8a19b2c12a603ab38b85ec9 (patch)
tree72023829a9296a0ae457523fe6f223525be6a576 /tests/logging_tests
parent0d3ccf7512edd48ac2461b7140977c16ee479d3e (diff)
downloaddjango-99bd5fb4c2d51f7bf8a19b2c12a603ab38b85ec9.tar.gz
Refs #34074 -- Used headers argument for RequestFactory and Client in docs and tests.
Diffstat (limited to 'tests/logging_tests')
-rw-r--r--tests/logging_tests/tests.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/logging_tests/tests.py b/tests/logging_tests/tests.py
index aa12cdf8c7..c73a3acd6d 100644
--- a/tests/logging_tests/tests.py
+++ b/tests/logging_tests/tests.py
@@ -419,14 +419,14 @@ class AdminEmailHandlerTest(SimpleTestCase):
# Text email
admin_email_handler.include_html = False
try:
- self.client.get("/", HTTP_HOST="evil.com")
+ self.client.get("/", headers={"host": "evil.com"})
finally:
admin_email_handler.include_html = old_include_html
# HTML email
admin_email_handler.include_html = True
try:
- self.client.get("/", HTTP_HOST="evil.com")
+ self.client.get("/", headers={"host": "evil.com"})
finally:
admin_email_handler.include_html = old_include_html