2016-09-20 98 views

回答

1

你可以肯定猴补丁一类的东西了__call__属性,它确实任何你想要的 - 但是,没有什么能够阻止你使用unittest.mock与pytest - 甚至还有的pytest-mock plugin使它更容易些。

相关问题