I have some code that uses both pymongo (through mongoengine) and motor together and expect to modify the same collection. If I made it so that AsyncMongoMockClient could take an already formed mock MongoClient, and then use the same client with mongoengine that it would achieve my aims? Or is that not necessary?
I have some code that uses both pymongo (through mongoengine) and motor together and expect to modify the same collection. If I made it so that
AsyncMongoMockClient
could take an already formed mockMongoClient
, and then use the same client with mongoengine that it would achieve my aims? Or is that not necessary?