Multi-db apps (no Django test suite) testing fails to create in-memory sqlite DBs
|Reported by:||Aron Grififs||Owned by:||nobody|
|Component:||Database layer (models, ORM)||Version:||1.3|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||yes||Patch needs improvement:||yes|
When testing a project with multiple databases, Django fails to create multiple in-memory SQLite databases, instead it creates only one (which is populated only with the table definitions for the default DB). The problem is that the generic test_db_signature() in [source:django/trunk/django/db/backends/creation.py db/backends/creation.py] doesn't work for in-memory SQLite databases, which all have the same NAME (":memory:").
The attached patch fixes this problem by adding a test_db_signature() method to the SQLite DatabaseCreation class.
Change History (11)
comment:1 Changed 5 years ago by
|Patch needs improvement:||set|
|Summary:||Multi-db testing fails to create multiple databases → Multi-db apps (no Django test suite) testing fails to create in-memory sqlite DBs|
|Triage Stage:||Unreviewed → Accepted|