mirror of
https://github.com/django/django.git
synced 2025-08-04 19:08:28 +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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue