Disable Django South when running unit tests?

后端 未结 2 768
青春惊慌失措
青春惊慌失措 2021-02-05 00:32

Disable Django South when running unit tests? How do you avoid running all of the south migrations when doing django unit testing?

2条回答
  •  时光说笑
    2021-02-05 01:21

    Even though, you have selected the good answer, I think that you should consider the option SOUTH_TESTS_MIGRATE instead. It will prevent to run all the migrations on your test db, and run syncdb instead.

提交回复
热议问题