How to use mongomock with unittest python

前端 未结 0 1095
梦毁少年i
梦毁少年i 2021-02-14 08:40

I try to mock my Mongo database on tests. I find article which I follow, but unfortunately my tests write to real mongo database instead of mocked. I have database.py

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