How to spread django unit tests over multiple files?

后端 未结 10 1923
后悔当初
后悔当初 2020-12-07 11:46
  • I have a python-django application
  • I\'m using the unit testing framework
  • The tests are arranged in the file \"tests.py\" in the module directory
10条回答
  •  春和景丽
    2020-12-07 12:32

    http://docs.python.org/library/unittest.html#organizing-tests talks about splitting the files into modules, and the section right above it has an example.

提交回复
热议问题