mirror of
https://github.com/Hopiu/django.git
synced 2026-03-19 15:30:24 +00:00
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 | ||