summaryrefslogtreecommitdiff
path: root/django/test/__init__.py
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2020-02-12 15:15:00 -0700
committerMariusz Felisiak <felisiak.mariusz@gmail.com>2020-03-18 19:59:12 +0100
commitfc0fa72ff4cdbf5861a366e31cb8bbacd44da22d (patch)
treed419ce531586808b0a111664907b859cb6d22862 /django/test/__init__.py
parent3f7e4b16bf58f99c71570ba75dc97db8265071be (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__.py13
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',
]