'manage.py test' failing for apps that access read-only databases
|Reported by:||kthhrv||Owned by:||nobody|
|Cc:||tomek@…, gregchapple1@…, Shai Berger||Triage Stage:||Accepted|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
searching 'Testing framework' component i can't find a ticket for this issue so here it is.
I have an app that accesses two databases one of which is read-only, when i run 'manage.py test <app>' i get an insufficient privileges error while its trying to create/destroy the tables on the read-only database. This causes the test run to fail then and there.
all the models in the read-only app are marked managed=False.
we can't always have RW access to legacy databases.
is there a workaround for this issue? i'd love to start running tests on this app.