Background
I'm trying to replace fixtures in my unit tests with model factories (using Factory Boy). It would help for me to determine why the current unit tests are failing if I could look at the database generated by loading the fixtures and compare them to the data generated by the factories.
I have tried to use the --keepdb
flag when running the tests to save a copy of the test database but this doesn't seem to save an accessible database anywhere.
Question
Django test databases are discarded after the tests run. Is there any way to save a copy of a database before it is deleted?
Alternatively, is there a better way to compare the data created by a fixture file and the data created by a model factory?