Using unittest.mock's patch in same module, getting “does not have the attribute” when patching via “__main__.imported_obj”

前端 未结 0 1636
时光说笑
时光说笑 2020-12-16 11:19

I have what should\'ve been a simple task, and it has stumped me for a while. I am trying to patch an object imported into the current module.

Per the a

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