You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

__init__.py 882 B

1234567891011121314151617181920212223242526272829
  1. """
  2. Django Unit Test and Doctest framework.
  3. """
  4. from django.test.client import Client, RequestFactory
  5. from django.test.testcases import (
  6. LiveServerTestCase, SimpleTestCase, TestCase, TransactionTestCase,
  7. skipIfDBFeature, skipUnlessAnyDBFeature, skipUnlessDBFeature,
  8. )
  9. from django.test.utils import (
  10. ignore_warnings, modify_settings, override_settings,
  11. override_system_checks,
  12. )
  13. __all__ = [
  14. 'Client', 'RequestFactory', 'TestCase', 'TransactionTestCase',
  15. 'SimpleTestCase', 'LiveServerTestCase', 'skipIfDBFeature',
  16. 'skipUnlessAnyDBFeature', 'skipUnlessDBFeature', 'ignore_warnings',
  17. 'modify_settings', 'override_settings', 'override_system_checks'
  18. ]
  19. # To simplify Django's test suite; not meant as a public API
  20. try:
  21. from unittest import mock # NOQA
  22. except ImportError:
  23. try:
  24. import mock # NOQA
  25. except ImportError:
  26. pass