How to mock a module C which is being imported in another module B, which is again being imported in module A while testing for A?

前端 未结 0 498
悲&欢浪女
悲&欢浪女 2020-12-01 04:50

Module A is being tested in pytest. But module A imports another module B which in turn imports C and instead I want to mock module C and test A. Basically need to mock C be

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