mongomock
mongomock copied to clipboard
Small library for mocking pymongo collection objects for testing purposes
Related to: #759 Also related to: [michaelkryukov/mongomock_motor#39](https://github.com/michaelkryukov/mongomock_motor/issues/39)
Given a aggregation pipeline like this: ``` aggregation_pipeline = [ { "$lookup": { "from": "books", "let": {"bookId": "$_id"}, "pipeline": [ { "$match": { "$expr": {"$eq": ["$book_id", "$$bookId"]} } }, {"$sort":...
`tox.ini` format seems to be incompatible with latest version of tox. I receive the following errors with tox==4.14.1: failed with pass_env values cannot contain whitespace, use comma to have multiple...
[Mongo change streams](https://www.mongodb.com/docs/manual/changeStreams/) are available since mongo version 3.6. PyMongo has native support for them as well: ```python with db.watch() as stream: for change in stream: ... ``` However, there...
I saw that many changes have been merged to develop branch lately, but the latest version is from July of 2022. Is there a plan to make a new version...
The persistence topic has been already addressed in issues #350 and #406. We have another use case where the tests of the command line interface require saving the database and...
* Use `hatch` as build tool and for environment handling * Use `pytest` as test-runner * Use PEP 621 compliant project metadata (`pyproject.toml`) * Fix some linter errors and test...
- Fix handling of `skip` kwarg for `estimated_document_count` with support for different versions. This will also fix some tests that currently are failing.
- Add support for `pymongo>=4.3` CodecOptions. This changes fix some tests and should also close #810.
- Add tests for DBRef in $lookup stage - Add support for DBRef in get_value_by_dot - Add support for arrays in $lookup stage closes #759