| Age | Commit message (Collapse) | Author |
|
Accidentally removed in 61a0ba43cfd4ff66f51a9d73dcd8ed6f6a6d9915.
Backport of c8837322e8b4068441ffe5dd497ab8a323525d3a from master
|
|
prefer the "default" database.
This fixes flushing test databases when two aliases point to the same
database.
Use a list() to store the test database aliases so the order remains
stable by following the order of the connections. Also, always use the
"default" database alias as the first alias to accommodate `migrate`.
Previously `migrate` could be executed on a secondary alias which
caused truncating the "default" database.
Backport of 06e5f7ae1639f1e275e7cc1076dc70ca3ebaa946 from master
|
|
Cleanups from addCleanup() are scheduled to happen in reverse order to
the order they are added (LIFO). Ensures each cleanup is executed from
the innermost to the outermost.
|
|
argument optional.
|
|
|
|
|
|
This implements support for asynchronous views, asynchronous tests,
asynchronous middleware, and an asynchronous test client.
|
|
assertXMLEqual()/assertXMLNotEqual().
|
|
The 'TEST' key is always set to a dictionary in ConnectionHandler.
|
|
|
|
|
|
Dicts preserve order since Python 3.6.
|
|
|
|
SimpleTestCase.databases makes it possible to determine the set of
databases required to run the discovered tests.
|
|
|
|
|
|
|
|
an exception.
|
|
signal receivers.
|
|
Added back after 607970f31cc07c317f2ebb684c8f3ccc36a95b3e.
|
|
Thanks Tim Graham for the review.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
It was needed to pass tests because registered checks weren't properly mocked.
|
|
|
|
Django's test runners no longer discover doctests.
|
|
|
|
|
|
a tuple.
Regression in 17e661641ddaf8266e7430d83cfb2039abc55df7
|
|
|
|
|
|
|
|
It's only needed to workaround a bug on Python 2.
|
|
|
|
|
|
|
|
Thanks Tim Graham for the review.
|
|
Thanks Tim Graham and Simon Charette for the reviews.
|
|
Thanks Tim Graham for the review.
|
|
|
|
|
|
|
|
|
|
|
|
|