How to use mongomock with unittest python

前端 未结 0 1118
余生分开走
余生分开走 2021-02-14 08:58

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

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