1
0
mirror of https://github.com/django/django.git synced 2024-12-22 17:16:24 +00:00

Refs #31928 -- Added various middlewares tests for detecting when get_response is coroutine.

This commit is contained in:
Kevin Michel 2020-08-28 11:42:35 +02:00 committed by Mariusz Felisiak
parent 825ce75fae
commit 225261b701

View File

@ -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.