How to patch the __new__ method of a class

后端 未结 0 1353
广开言路
广开言路 2020-12-06 14:26

My goal is to patch a class\' __new__ method in order to control the exact object it creates in a test case. See the code below.

Each of the two tests

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