0
0
mirror of https://github.com/django/django.git synced 2024-12-01 15:42:04 +01:00
django/tests/test_runner
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
models.py
runner.py
test_debug_sql.py Fixed #32227 -- Prevented crash when setUpTestData() errors with --debug-sql. 2020-11-28 12:22:59 +01:00
test_discover_runner.py Fixed #32355 -- Dropped support for Python 3.6 and 3.7 2021-02-10 10:20:54 +01:00
test_parallel.py Fixed #32355 -- Dropped support for Python 3.6 and 3.7 2021-02-10 10:20:54 +01:00
tests.py Fixed #29052 -- Made test database creation preserve alias order and prefer the "default" database. 2021-02-16 10:25:34 +01:00