mirror of
https://github.com/django/django.git
synced 2025-11-19 03:08:59 +00:00
And removed Ignore*DeprecationWarningsMixin, now obsolete. Thanks Berker Peksag and Tim Graham for the review.
28 lines
828 B
Python
28 lines
828 B
Python
"""
|
|
Django Unit Test and Doctest framework.
|
|
"""
|
|
|
|
from django.test.client import Client, RequestFactory
|
|
from django.test.testcases import (
|
|
TestCase, TransactionTestCase,
|
|
SimpleTestCase, LiveServerTestCase, skipIfDBFeature,
|
|
skipUnlessDBFeature
|
|
)
|
|
from django.test.utils import (ignore_warnings, modify_settings,
|
|
override_settings, override_system_checks)
|
|
|
|
__all__ = [
|
|
'Client', 'RequestFactory', 'TestCase', 'TransactionTestCase',
|
|
'SimpleTestCase', 'LiveServerTestCase', 'skipIfDBFeature',
|
|
'skipUnlessDBFeature', 'ignore_warnings', 'modify_settings',
|
|
'override_settings', 'override_system_checks'
|
|
]
|
|
|
|
# To simplify Django's test suite; not meant as a public API
|
|
try:
|
|
from unittest import mock # NOQA
|
|
except ImportError:
|
|
try:
|
|
import mock # NOQA
|
|
except ImportError:
|
|
pass
|