From 41bd486b08b5af611734337537d5a448f50af6bb Mon Sep 17 00:00:00 2001 From: UsamaSadiq Date: Fri, 6 Oct 2023 20:03:20 +0500 Subject: [PATCH] fix: fix middleware default argument --- analytics_dashboard/core/tests/test_middleware.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/analytics_dashboard/core/tests/test_middleware.py b/analytics_dashboard/core/tests/test_middleware.py index 40b17b81f..216dacc04 100644 --- a/analytics_dashboard/core/tests/test_middleware.py +++ b/analytics_dashboard/core/tests/test_middleware.py @@ -20,7 +20,7 @@ class MiddlewareTestCase(TestCase): def setUp(self): super().setUp() self.factory = RequestFactory() - self.middleware = self.middleware_class() # pylint: disable=not-callable + self.middleware = self.middleware_class(get_response=lambda request: None) # pylint: disable=not-callable class MiddlewareAssertionMixin: