About Anaconda Help Download Anaconda

Small library for mocking pymongo collection objects for testing purposes

Installers

Info: This package contains files in non-standard labels.
  • noarch v4.0.0

conda install

To install this package run one of the following:
conda install conda-forge::mongomock
conda install conda-forge/label/cf202003::mongomock

Description

Mongomock is a small library to help testing Python code that interacts with MongoDB via Pymongo.

MongoDB is complex. This library aims at a reasonably complete mock of MongoDB for testing purposes, not a perfect replica. This means some features are not likely to make it in any time soon.

Also, since many corner cases are encountered along the way, our goal is to try and TDD our way into completeness. This means that every time we encounter a missing or broken (incompatible) feature, we write a test for it and fix it. There are probably lots of such issues hiding around lurking, so feel free to open issues and/or pull requests and help the project out!

NOTE: We don't include pymongo functionality as "stubs" or "placeholders". Since this library is used to validate production code, it is unacceptable to behave differently than the real pymongo implementation. In such cases it is better to throw NotImplementedError than implement a modified version of the original behavior.


© 2024 Anaconda, Inc. All Rights Reserved. (v4.0.4) Legal | Privacy Policy