django1/django/test
Harm Geerts 06e5f7ae16 Fixed #29052 -- Made test database creation preserve alias order and 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.
2021-02-16 10:25:34 +01:00
..
__init__.py Fixed #31224 -- Added support for asynchronous views and middleware. 2020-03-18 19:59:12 +01:00
client.py Fixed #32159 -- Ensured AsyncRequestFactory correctly sets headers. 2020-11-04 11:07:15 +01:00
html.py Made small readability improvements. 2020-10-28 20:20:20 +01:00
runner.py Fixed #32355 -- Dropped support for Python 3.6 and 3.7 2021-02-10 10:20:54 +01:00
selenium.py Bumped minimum isort version to 5.1.0. 2020-07-30 10:58:59 +02:00
signals.py Fixed #32233 -- Cleaned-up duplicate connection functionality. 2020-12-08 08:55:44 +01:00
testcases.py Fixed #32417 -- Removed unneeded hasattr() check in LiveServerTestCase._tearDownClassInternal(). 2021-02-15 10:25:11 +01:00
utils.py Fixed #29052 -- Made test database creation preserve alias order and prefer the "default" database. 2021-02-16 10:25:34 +01:00