From fc0fa72ff4cdbf5861a366e31cb8bbacd44da22d Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 12 Feb 2020 15:15:00 -0700 Subject: Fixed #31224 -- Added support for asynchronous views and middleware. This implements support for asynchronous views, asynchronous tests, asynchronous middleware, and an asynchronous test client. --- django/test/__init__.py | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'django/test/__init__.py') diff --git a/django/test/__init__.py b/django/test/__init__.py index 4782d72184..d1f953a8dd 100644 --- a/django/test/__init__.py +++ b/django/test/__init__.py @@ -1,6 +1,8 @@ """Django Unit Test framework.""" -from django.test.client import Client, RequestFactory +from django.test.client import ( + AsyncClient, AsyncRequestFactory, Client, RequestFactory, +) from django.test.testcases import ( LiveServerTestCase, SimpleTestCase, TestCase, TransactionTestCase, skipIfDBFeature, skipUnlessAnyDBFeature, skipUnlessDBFeature, @@ -11,8 +13,9 @@ from django.test.utils import ( ) __all__ = [ - 'Client', 'RequestFactory', 'TestCase', 'TransactionTestCase', - 'SimpleTestCase', 'LiveServerTestCase', 'skipIfDBFeature', - 'skipUnlessAnyDBFeature', 'skipUnlessDBFeature', 'ignore_warnings', - 'modify_settings', 'override_settings', 'override_system_checks', 'tag', + 'AsyncClient', 'AsyncRequestFactory', 'Client', 'RequestFactory', + 'TestCase', 'TransactionTestCase', 'SimpleTestCase', 'LiveServerTestCase', + 'skipIfDBFeature', 'skipUnlessAnyDBFeature', 'skipUnlessDBFeature', + 'ignore_warnings', 'modify_settings', 'override_settings', + 'override_system_checks', 'tag', ] -- cgit v1.3