Python: during unit test, replace another module's import before it's used

后端 未结 0 1519
星月不相逢
星月不相逢 2021-02-05 11:52

I have module that:

  1. Imports a class
  2. Instantiates the class + uses it

I would like to replace that class with another class before instantiati

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