michaelkryukov / mongomock_motor

Library for mocking AsyncIOMotorClient built on top of mongomock.
MIT License
94 stars 23 forks source link

Add support for Mongo-Thingy #21

Closed ramnes closed 1 year ago

ramnes commented 1 year ago

Hey there, thanks for the great library!

Mongo-Thingy is a sync + async ODM that already has Mongomock and Motor as supported backends, so I really would love to add mongomock-motor to the list. :)

This PR fixes the errors that are raised by our test suite when adding mongomock-motor to the list of tested backends (see here if you're curious).

Basically, we just handle a few more things that should be interesting in other situations too:

It also adds a test file for Mongo-Thingy, inspired by test_umongo.py, in case you want to keep the compatibility alive.

michaelkryukov commented 1 year ago

Hey, thanks for kind words! Changes look good. I'l release a new version as soon i'l have an opportunity