阅读背景:

使用Python mock监视对现有对象的调用

来源:互联网 

I'm using the Python mock module for tests. I would like to replace an active object with a mock, and automatically have all calls made to the mock object forwarded to the original object. I think this is called a "Spy" in standard testing terminology. At the moment I'm doing inside a test:I'm using the Python mock module for tests. I w




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: