运行单元测试时禁用Django South? [英] Disable Django South when running unit tests?
本文介绍了运行单元测试时禁用Django South?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
是的,南方文档介绍了如何做,但基本上只是将其添加到settings.py文件中:
SOUTH_TESTS_MIGRATE = False#禁用迁移并使用syncdb而不是
SKIP_SOUTH_TESTS = True#禁用南方自己的单元测试
Disable Django South when running unit tests? How do you avoid running all of the south migrations when doing django unit testing?
解决方案
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
这篇关于运行单元测试时禁用Django South?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文