From 0e540fca13ecf3d40be374ef7be94a0357222873 Mon Sep 17 00:00:00 2001 From: Mariusz Felisiak Date: Wed, 13 Sep 2023 13:49:01 +0200 Subject: [PATCH] Corrected logger in CsrfViewMiddlewareTestMixin.test_ensures_csrf_cookie_no_logging(). Logger was changed in 55fec16aafed30a9daa06d6ecdf8ca3ad361279e. --- tests/csrf_tests/tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/csrf_tests/tests.py b/tests/csrf_tests/tests.py index 87e5453dbd..9407221cd1 100644 --- a/tests/csrf_tests/tests.py +++ b/tests/csrf_tests/tests.py @@ -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)