$npx skillfedfor your agent

mock-firestore

In-memory implementation of Google Cloud Firestore for use in tests

With conditionsPyPI TestingReleased Jan 2022139.6K downloads / mopermissive licensePure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — mock_firestore-0.11.0-py3-none-any.whl
v0.11.0 · released 2022-01-24

Yes, if you are testing code that uses Firestore and want a lightweight, zero-dependency mock. The package is dormant (last release January 2022) but has no known vulnerabilities and works for its stated purpose. Install it only if your Firestore client API usage aligns with the partial feature set documented; verify coverage of the operations your code relies on before committing to it in your test suite.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Python 3.6+ is required.
  • Low install friction with no runtime dependencies.
  • Maintenance is dormant—last release was in January 2022 and the last commit in August 2024, so the package is not actively developed but remains available and functional for its stated purpose.

License · maintenance · safety

permissive license (permissive) — Licensed under MIT (permissive), so you can use it freely in commercial and private projects with minimal restrictions.

last release 2022-01-24 (1663 days) · last repo commit 2024-08-08 · 79 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 139,644 downloads/mo, #11,293 on PyPI

Verify before relying

pip install mock-firestore

from mock_firestore import MockFirestore

mock_db = MockFirestore()
mock_db.collection('users').document('alice').set({'name': 'Alice'})
doc = mock_db.collection('users').document('alice').get()
print(doc.to_dict())
  • Extent of API coverage relative to the current Python Firestore client library—description notes 'only a partial implementation'.
  • Whether dormant maintenance (last release January 2022) poses a risk if Firestore client API has evolved significantly since then.
Same gist for agents: .md · .json

What it is and what it does

mock-firestore is an in-memory implementation of the Google Cloud Firestore Python client, designed to replace the real client in unit tests. It mimics the same API surface—collections, documents, queries, transactions, and field transforms—so test code can use it as a drop-in substitute without hitting the live Firestore service. The package has no runtime dependencies and installs cleanly.

The implementation is partial; not every Firestore operation is supported, but the description lists a substantial set of working operations including document CRUD, collection traversal, filtering with where clauses, ordering, limits, cursors, and transaction support. It's useful for fast, isolated unit tests where you need a Firestore-like interface but don't want network calls or cloud infrastructure. Reset the mock with reset() to clear state between tests.

Use it for

  • Unit test a Python application that uses Firestore without spinning up a real database or incurring cloud costs.
  • Develop and test Firestore queries and transactions locally before deploying to production.
  • Mock Firestore in CI/CD pipelines to run tests in parallel without database contention.
  • Test error handling and edge cases in Firestore code without risking real data.
  • Prototype Firestore-backed features before committing to cloud infrastructure.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you are testing code that uses Firestore and want a lightweight, zero-dependency mock.

The package is dormant (last release January 2022) but has no known vulnerabilities and works for its stated purpose. Install it only if your Firestore client API usage aligns with the partial feature set documented; verify coverage of the operations your code relies on before committing to it in your test suite.

Install

mock-firestore on PyPI

Before you install

Low install friction with no runtime dependencies. Maintenance is dormant—last release was in January 2022 and the last commit in August 2024, so the package is not actively developed but remains available and functional for its stated purpose.

Python 3.6+ is required.

License in practice

Licensed under MIT (permissive), so you can use it freely in commercial and private projects with minimal restrictions.

Quickstart

pip install mock-firestore

from mock_firestore import MockFirestore

mock_db = MockFirestore()
mock_db.collection('users').document('alice').set({'name': 'Alice'})
doc = mock_db.collection('users').document('alice').get()
print(doc.to_dict())

Verify before relying

  • Extent of API coverage relative to the current Python Firestore client library—description notes 'only a partial implementation'.
  • Whether dormant maintenance (last release January 2022) poses a risk if Firestore client API has evolved significantly since then.

Package facts

Licensepermissive license permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 1,663 days since the last release
Last repo commit
First released
Downloads139,644 / month, #11,293 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
License :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Evidence: mock_firestore-0.11.0-py3-none-any.whl

Tags

Capabilities
firestore mock testingin-memory firestorefirestore test doublefirestore unit testmock google cloud firestorefirestore fake databasefirestore testing library
Topics
firestoretestingmock

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “firestore mock testing”

  • mock-firestoreProvides an in-memory mock of the Google Cloud Firestore Python…
  • google-cloud-firestorePython client library for Google Cloud Firestore, a managed NoSQL…
  • firebase-adminFirebase Admin Python SDK provides server-side access to Firebase…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also google-cloud-firestore · pyfakefs · flexmock · django-mock-queries · firebase-admin · moto · aiomoto · mock-open · moto-ext · asynctest