Testing logging output with pytest

前端 未结 0 830
孤街浪徒
孤街浪徒 2021-02-11 21:33

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:

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