Instances of the client, database and collection are not hashable.
# other implementation - all of these work:
import mongomock
import pymongo
import motor
hash(pymongo.MongoClient())
hash(mongomock.MongoClient())
...
hash(motor.motor_asyncio.AsyncIOMotorClient())
hash(motor.motor_asyncio.AsyncIOMotorClient()['db'])
hash(motor.motor_asyncio.AsyncIOMotorClient()['db']['col'])
# mongomock_motor - none of these work
import mongomock_motor
hash(motor.motor_asyncio.AsyncMongoMockClient())
hash(motor.motor_asyncio.AsyncMongoMockClient()["db"])
hash(motor.motor_asyncio.AsyncMongoMockClient()["db"]["col"])
Instances of the client, database and collection are not hashable.