mirror of
https://github.com/django/django.git
synced 2025-08-04 02:48:35 +00:00
Fixed #22102 -- Made SimpleTestCase tests run before unittest.TestCase ones
Thanks aptiko for the reporti and Tim Graham for the review.
This commit is contained in:
parent
476db08b16
commit
3e3a7372f5
5 changed files with 83 additions and 9 deletions
|
@ -206,13 +206,13 @@ the Django test runner reorders tests in the following way:
|
|||
|
||||
* All :class:`~django.test.TestCase` subclasses are run first.
|
||||
|
||||
* Then, all other unittests (including :class:`unittest.TestCase`,
|
||||
:class:`~django.test.SimpleTestCase` and
|
||||
* Then, all other Django-based tests (test cases based on
|
||||
:class:`~django.test.SimpleTestCase`, including
|
||||
:class:`~django.test.TransactionTestCase`) are run with no particular
|
||||
ordering guaranteed nor enforced among them.
|
||||
|
||||
* Then any other tests (e.g. doctests) that may alter the database without
|
||||
restoring it to its original state are run.
|
||||
* Then any other :class:`unittest.TestCase` tests (including doctests) that may
|
||||
alter the database without restoring it to its original state are run.
|
||||
|
||||
.. note::
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue