阅读背景:

Python,单元测试和模拟导入

来源:互联网 

I am in a project where we are starting refactoring some massive code base. One problem that immediately sprang up is that each file imports a lot of other files. How do I in an elegant way mock this in my unit test without having to alter the actual code so I can start to write unit-tests?I am in a project where we are starting refacto




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

分享到: