MongoMock and mongoengine not clearing database

Viewed 1203

During unittesting I'm calling:

self.connection = connect(db="testdb", host="mongomock://localhost")
self.connection.drop_database("testdb")

between tests, however data is persisting. Is there a known fix for this?

0 Answers
Related