How do I patch a function imported by an imported class?

后端 未结 0 795
傲寒
傲寒 2020-12-17 05:16

I am writing python unittests and need to patch a function from a class not explicitly imported at the call site. I encounter an error unless I add the import (unused) to th

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