Skip to main content

mongomock-motor

PyPI version FOSSA Status

Best effort mock for AsyncIOMotorClient (Database, Collection, e.t.c) built on top of mongomock library.

Example / Showcase

from mongomock_motor import AsyncMongoMockClient


async def test_mock_client():
    collection = AsyncMongoMockClient()['tests']['test-1']

    assert await collection.find({}).to_list(None) == []

    result = await collection.insert_one({'a': 1})
    assert result.inserted_id

    assert len(await collection.find({}).to_list(None)) == 1

License

FOSSA Status

Metadata

Release files for mongomock-motor 0.0.36

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mongomock-motor 0.0.36
File Size Uploaded
mongomock_motor-0.0.36.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mongomock-motor 0.0.36
File Interpreter ABI Platform
mongomock_motor-0.0.36-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / mongomock_motor-0.0.36.tar.gz

Download URL mongomock_motor-0.0.36.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
3cf62352ece5af2f02e04d2f252393f88b5fe0487997da00584020cee4b8efba
BLAKE2b-256 checksum
How to use checksums
189f38e42a34ebad323addaf6296d6b5d83eaf2c423adf206b757c68315e196a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.11.12 Linux/6.11.0-1012-azure

Release files / mongomock_motor-0.0.36-py3-none-any.whl

Download URL mongomock_motor-0.0.36-py3-none-any.whl
Size 7.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3ecb7949662b8986ff9c267fa0b1402b5b75a6afd57f03850cd6e13a067e3691
BLAKE2b-256 checksum
How to use checksums
d699f5fdbbdc96bfd03e5f9c36339547a9076f5dbb5882900b7621526d41a38d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.3 CPython/3.11.12 Linux/6.11.0-1012-azure
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page