1
0
mirror of https://github.com/django/django.git synced 2025-01-03 15:06:09 +00:00

Corrected logger in CsrfViewMiddlewareTestMixin.test_ensures_csrf_cookie_no_logging().

Logger was changed in 55fec16aaf.
This commit is contained in:
Mariusz Felisiak 2023-09-13 13:49:01 +02:00 committed by GitHub
parent 74f7deec9e
commit 0e540fca13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -857,7 +857,7 @@ class CsrfViewMiddlewareTestMixin(CsrfFunctionTestMixin):
"""
ensure_csrf_cookie() doesn't log warnings (#19436).
"""
with self.assertNoLogs("django.request", "WARNING"):
with self.assertNoLogs("django.security.csrf", "WARNING"):
req = self._get_request()
ensure_csrf_cookie_view(req)