diff options
| author | Andrew Godwin <andrew@aeracode.org> | 2020-02-12 15:15:00 -0700 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2020-03-18 19:59:12 +0100 |
| commit | fc0fa72ff4cdbf5861a366e31cb8bbacd44da22d (patch) | |
| tree | d419ce531586808b0a111664907b859cb6d22862 /django/test/__init__.py | |
| parent | 3f7e4b16bf58f99c71570ba75dc97db8265071be (diff) | |
Fixed #31224 -- Added support for asynchronous views and middleware.
This implements support for asynchronous views, asynchronous tests,
asynchronous middleware, and an asynchronous test client.
Diffstat (limited to 'django/test/__init__.py')
| -rw-r--r-- | django/test/__init__.py | 13 |
1 files changed, 8 insertions, 5 deletions
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', ] |
