michaelkryukov / mongomock_motor

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

fix: make aggregate cursor closable #53

Closed SaturnFromTitan closed 3 months ago

SaturnFromTitan commented 3 months ago

a follow-up to https://github.com/michaelkryukov/mongomock_motor/pull/46 & https://github.com/michaelkryukov/mongomock_motor/pull/48. I think the with_async_methods method should've been added to the LatentCursor class, not to the Collection.

michaelkryukov commented 3 months ago

Yep, looks correct