I'm running django tests on a large application. They require a test database, so I need to create a test database before running tests. But the problem is - because of some dependency problems the migration must be run in the following order: migrate app2, migrate app1, migrate. I know that I'm doing it wrong but I have no will and time to fix hundreds of migrations. The question is: how can I specify custom migration order to create test databases, that I would later use for each test run via --keep-db option?
Aucun commentaire:
Enregistrer un commentaire