1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

[1.7.x] Fixed #22102 -- Made SimpleTestCase tests run before unittest.TestCase ones

Thanks aptiko for the report and Tim Graham for the review.
Backport of 3e3a7372f5 from master.
This commit is contained in:
Claude Paroz
2014-04-12 11:42:06 +02:00
parent 3f48ca2071
commit d9f8cc12ae
5 changed files with 83 additions and 9 deletions

View File

@@ -221,13 +221,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::