How to mock MongoClient using unittest.mock.patch (“TypeError: 'MongoClient' object is not callable”)

后端 未结 0 1770
闹比i
闹比i 2021-01-02 17:39

I\'m trying to replace my MongoClient with the mongomock version, using unittest.mock.patch, but for some reason, it breaks. Here is m

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