pytest: patch function within subprocess

后端 未结 0 1861
一向
一向 2020-12-22 08:57

I\'m writing a pytest test. The test creates a subprocess and makes an assertion about the subprocess\' output. I want to patch a function the subprocess uses.

For ex

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