summaryrefslogtreecommitdiff
path: root/tests/deprecation
diff options
context:
space:
mode:
authorKevin Michel <kevin.michel@sereema.com>2020-08-28 11:42:35 +0200
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-08-28 12:33:29 +0200
commit225261b70136fa90e63b6cf4ea10341e793d7341 (patch)
tree5e43404eacac1e5ae466388983670a6cbb2d0c7d /tests/deprecation
parent825ce75faec63ce81601e31152c757a9c28fed13 (diff)
downloaddjango-225261b70136fa90e63b6cf4ea10341e793d7341.tar.gz
Refs #31928 -- Added various middlewares tests for detecting when get_response is coroutine.
Diffstat (limited to 'tests/deprecation')
-rw-r--r--tests/deprecation/test_middleware_mixin.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/deprecation/test_middleware_mixin.py b/tests/deprecation/test_middleware_mixin.py
index fc792e92a3..4f410a77c8 100644
--- a/tests/deprecation/test_middleware_mixin.py
+++ b/tests/deprecation/test_middleware_mixin.py
@@ -77,12 +77,7 @@ class MiddlewareMixinTests(SimpleTestCase):
def sync_get_response(request):
return HttpResponse()
- for middleware in [
- CacheMiddleware,
- FetchFromCacheMiddleware,
- UpdateCacheMiddleware,
- SecurityMiddleware,
- ]:
+ for middleware in self.middlewares:
with self.subTest(middleware=middleware.__qualname__):
# Middleware appears as coroutine if get_function is
# a coroutine.