How to mock global variable in a imported module in python unit test?

后端 未结 0 1079
轻奢々
轻奢々 2021-01-13 12:34

i\'ve a peculiar scenario like the below post!

Post

But the difference is my database module also has a global variable that needs to be mocked out!

<         


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