From 3a6fa1d962ad9bd5678290bc22dd35bff13eb1f5 Mon Sep 17 00:00:00 2001 From: Mads Jensen Date: Thu, 13 Aug 2020 13:02:56 +0200 Subject: [PATCH] Added missing items to django.test.client.__all__ and django.test.utils.__all__. --- django/test/client.py | 5 ++++- django/test/utils.py | 6 ++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/django/test/client.py b/django/test/client.py index 41fe9e627be..1e6d9e2a398 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -30,7 +30,10 @@ from django.utils.http import urlencode from django.utils.itercompat import is_iterable from django.utils.regex_helper import _lazy_re_compile -__all__ = ('Client', 'RedirectCycleError', 'RequestFactory', 'encode_file', 'encode_multipart') +__all__ = ( + 'AsyncClient', 'AsyncRequestFactory', 'Client', 'RedirectCycleError', + 'RequestFactory', 'encode_file', 'encode_multipart', +) BOUNDARY = 'BoUnDaRyStRiNg' diff --git a/django/test/utils.py b/django/test/utils.py index fec6e7f8a30..908cc38bcf1 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -35,9 +35,11 @@ except ImportError: __all__ = ( 'Approximate', 'ContextList', 'isolate_lru_cache', 'get_runner', - 'modify_settings', 'override_settings', + 'CaptureQueriesContext', + 'ignore_warnings', 'isolate_apps', 'modify_settings', 'override_settings', + 'override_system_checks', 'tag', 'requires_tz_support', - 'setup_test_environment', 'teardown_test_environment', + 'setup_databases', 'setup_test_environment', 'teardown_test_environment', ) TZ_SUPPORT = hasattr(time, 'tzset')