To resolve this problem we just need to patch the ming.Session with a new datastore that is connected to memory.
from ming import create_datastore
from ming import Session
def no_requests(monkeypatch):
memory_datastore = create_datastore('mim://localhost:27017', database='test')
monkeypatch.setattr(Session, 'db', memory_database.db)