Disable Django South when running unit tests?

后端 未结 2 776
青春惊慌失措
青春惊慌失措 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:05

    Yes, the South documentation describes how to do it, but basically just add this to your settings.py file:

    SOUTH_TESTS_MIGRATE = False # To disable migrations and use syncdb instead
    SKIP_SOUTH_TESTS = True # To disable South's own unit tests
    

提交回复
热议问题