How to exclude mock package from python coverage report using nosetests

前端 未结 3 2017
南笙
南笙 2020-12-25 11:39

I currently try to use the mock library to write some basic nose unittests in python.

After finishing some basic example I now tried to use nosetests --with-co

3条回答
  •  猫巷女王i
    2020-12-25 12:05

    In your .coveragerc move your omit entry from the [report] section to the [run] section.

提交回复
热议问题