{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/2"}],"enrichment":{"capability":"Provides an async mock client for MongoDB that mimics the AsyncIOMotorClient API, allowing you to test async MongoDB code without a running database.","skillfed_tags":["testing","mongodb","async-mock"],"use_cases":["Unit test async MongoDB code without requiring a test MongoDB instance or Docker container.","Mock motor client in CI/CD pipelines where spinning up a database would slow down test runs.","Develop and test async MongoDB queries locally without database setup overhead.","Verify async query logic and collection operations in isolation before integration testing."],"what_it_does":"mongomock-motor wraps the mongomock library to provide an async-compatible mock of MongoDB's AsyncIOMotorClient. It lets you write and test async MongoDB code without spinning up a real database server, using the same async/await patterns you'd use with the actual motor library. The mock implements the core AsyncIOMotorClient, Database, and Collection interfaces, returning coroutines that can be awaited in your test code.\n\nThe package is built on top of mongomock, which handles the in-memory database simulation, and motor, which defines the async API contract. It's intended for unit and integration testing of applications that use motor for async MongoDB access. Since it's a pure-Python implementation with no external database dependency, it's fast and lightweight for test environments.","worth_installing":"Yes, if you write async MongoDB code with motor and want to test without a real database. The low install friction, permissive license, and current Python version support make it a straightforward addition to a test suite. The aging maintenance status (455 days since last release) is a minor concern for a stable mock library, but the lack of security vulnerabilities and active repository suggest it remains usable. Verify that the mock covers the specific motor APIs your code relies on before committing to it."},"id":"mongomock-motor","links":{"html":"https://skillfed.io/packages/mongomock-motor","md":"https://skillfed.io/packages/mongomock-motor.md","pypi":"https://pypi.org/project/mongomock-motor/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-05-16","license_spdx":null,"license_treatment":"permissive","name":"mongomock-motor","python_support":"supports_current","summary":"Library for mocking AsyncIOMotorClient built on top of mongomock."},"popularity":{"monthly_downloads":1467915,"position":3873,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.0.36"}
