mirror of
https://github.com/django/django.git
synced 2024-12-01 15:42:04 +01:00
06e5f7ae16
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. |
||
---|---|---|
.. | ||
__init__.py | ||
models.py | ||
runner.py | ||
test_debug_sql.py | ||
test_discover_runner.py | ||
test_parallel.py | ||
tests.py |