Testing logging output with pytest

前端 未结 0 719
鱼传尺愫
鱼传尺愫 2021-02-11 21:36

I am trying to write a test, using pytest, that would check that a specific function is writing out a warning to the log when needed. For example:

In module.py:

相关标签:
回答
  • 消灭零回复
提交回复
热议问题