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:
parent
74f7deec9e
commit
0e540fca13
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user