Python how to patch entire object with patch.object

前端 未结 0 1588
感动是毒
感动是毒 2020-12-17 00:30

Python\'s unittest.mock built-in library provides patch.object, which let\'s you:

patch the named member (attribute) on an object (target) w

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