Skip to main content

Library for mocking AsyncIOMotorClient built on top of mongomock.

Project description

mongomock-motor

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mongomock_motor-0.0.1.tar.gz (2.6 kB view details)

Uploaded Source

Built Distributions

mongomock_motor-0.0.1-py3.8.egg (6.2 kB view details)

Uploaded Source

mongomock_motor-0.0.1-py3-none-any.whl (3.4 kB view details)

Uploaded Python 3

File details

Details for the file mongomock_motor-0.0.1.tar.gz.

File metadata

  • Download URL: mongomock_motor-0.0.1.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for mongomock_motor-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4bbe99355bc9c6bff342ef36f71171b7ca2a85a905510d2863151ca20a5895a6
MD5 ca82c63113a905a72eaebadf061d83ed
BLAKE2b-256 464ca0e4622f468f38233889be7e7403c578875f081524527fa7a7a5fb68a1ff

See more details on using hashes here.

Provenance

File details

Details for the file mongomock_motor-0.0.1-py3.8.egg.

File metadata

  • Download URL: mongomock_motor-0.0.1-py3.8.egg
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for mongomock_motor-0.0.1-py3.8.egg
Algorithm Hash digest
SHA256 998e4ee4b97e0fac5b28e6acc28a94de75630a46929cf8c7aacbc37fd8a33200
MD5 337ef9f601c7de401de60bfeb87938da
BLAKE2b-256 2cf54c8fbf79149dc82cc6000d386f84b8bd0d538448728c07a4c9c8434730f7

See more details on using hashes here.

Provenance

File details

Details for the file mongomock_motor-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mongomock_motor-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.12

File hashes

Hashes for mongomock_motor-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ff98d666be358f6fed4ac1c8e5dfa06a4b6b860d7eaa3fd28c798da2a37110b8
MD5 66fb3719dfdeea711f82d58551d5417b
BLAKE2b-256 321187bfbb02b152b780dbd6cfb1264116bd2a23306d029fa5afdcbd2cc37bc1

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page