mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Refs #25735 -- Made @tag decorator importable from django.test.
This commit is contained in:
parent
375e1cfe2b
commit
032f5a7896
@ -9,14 +9,14 @@ from django.test.testcases import (
|
||||
)
|
||||
from django.test.utils import (
|
||||
ignore_warnings, modify_settings, override_settings,
|
||||
override_system_checks,
|
||||
override_system_checks, tag,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
'Client', 'RequestFactory', 'TestCase', 'TransactionTestCase',
|
||||
'SimpleTestCase', 'LiveServerTestCase', 'skipIfDBFeature',
|
||||
'skipUnlessAnyDBFeature', 'skipUnlessDBFeature', 'ignore_warnings',
|
||||
'modify_settings', 'override_settings', 'override_system_checks'
|
||||
'modify_settings', 'override_settings', 'override_system_checks', 'tag',
|
||||
]
|
||||
|
||||
# To simplify Django's test suite; not meant as a public API
|
||||
|
@ -1632,7 +1632,7 @@ Tagging tests
|
||||
You can tag your tests so you can easily run a particular subset. For example,
|
||||
you might label fast or slow tests::
|
||||
|
||||
from django.test.utils import tag
|
||||
from django.test import tag
|
||||
|
||||
class SampleTestCase(TestCase):
|
||||
|
||||
|
@ -1,8 +1,7 @@
|
||||
import doctest
|
||||
from unittest import TestCase
|
||||
|
||||
from django.test import SimpleTestCase, TestCase as DjangoTestCase
|
||||
from django.test.utils import tag
|
||||
from django.test import SimpleTestCase, TestCase as DjangoTestCase, tag
|
||||
|
||||
from . import doctests
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user