FICHA · MANJARO

python-mongomock

Fake pymongo stub for testing simple MongoDB-dependent code

  • Library
  • Dev
  • DATABASE
  • Dependency only
official+codex · reviewed · May 28, 2026 description in en

Description

Simulates pymongo behavior in memory for Python tests. It helps developers test MongoDB-dependent code without requiring a running MongoDB server for simple cases.

It is a test double, not a perfect database replacement. Important queries, indexes, transactions, and production behavior should still be checked against a real MongoDB-compatible server.

Permissions

Permissions not analysed for this source yet.