From cd2d508707857b1f6b8d4b9f73cd3be9a5ca0a37 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Fri, 14 Feb 2020 10:35:58 +0100 Subject: [PATCH] Removed redundant MiddlewareTest.test_old_style_request() test. CurrentSiteMiddleware.process_request() is already covered by MiddlewareTest.test_request(). --- tests/sites_tests/tests.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/sites_tests/tests.py b/tests/sites_tests/tests.py index 3de0049c62..2971a5b853 100644 --- a/tests/sites_tests/tests.py +++ b/tests/sites_tests/tests.py @@ -327,14 +327,6 @@ class CreateDefaultSiteTests(TestCase): class MiddlewareTest(TestCase): - - def test_old_style_request(self): - """The request has correct `site` attribute.""" - middleware = CurrentSiteMiddleware() - request = HttpRequest() - middleware.process_request(request) - self.assertEqual(request.site.id, settings.SITE_ID) - def test_request(self): def get_response(request): return HttpResponse(str(request.site.id))