michaelkryukov / mongomock_motor

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

BulkWriteResult couldn't be awaited #11

Closed cperezabo closed 2 years ago

cperezabo commented 2 years ago

Using bulk_write returned this error

TypeError: object BulkWriteResult can't be used in 'await' expression

Now it's fixed

michaelkryukov commented 2 years ago

Looks like I should update list of methods so it matches methods from https://github.com/mongodb/motor/blob/a6b2a79e0cae65d01a87a66bb277f4fe613ae844/motor/core.py#L751. I'll merge this PR, but I'll make the next release when I update the list of methods.

cperezabo commented 2 years ago

Thanks, at the moment we are using my fork branch, but I will be waiting for your next release so I can remove the reference to my fork from requirements and restore PyPI's 🙏