Library for mocking AsyncIOMotorClient built on top of mongomock.
Project description
mongomock-motor
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
Project details
Release history Release notifications | RSS feed
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.3.tar.gz
(3.5 kB
view details)
Built Distributions
File details
Details for the file mongomock_motor-0.0.3.tar.gz
.
File metadata
- Download URL: mongomock_motor-0.0.3.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 891d1b573c1ac29fbe23bb51acd99990cd151b882c680d907f5998b295974dd1 |
|
MD5 | fdb1f5abd74e8f351c72d8a940c6c3b5 |
|
BLAKE2b-256 | bc2ed74a78c34dac26c7cb6b24ace3e5da6089d9d50fedbc744495907b5a268d |
Provenance
File details
Details for the file mongomock_motor-0.0.3-py3.8.egg
.
File metadata
- Download URL: mongomock_motor-0.0.3-py3.8.egg
- Upload date:
- Size: 9.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 03ef3da219445abeafe6742c5ec0d733660ed92047f3cc1e3df6a19c2953f4c6 |
|
MD5 | fb1e3fa927a0cf528ec3fb484827a522 |
|
BLAKE2b-256 | 6aa1bda0944549c474072da301c429856fec785c1344f586b669f31b983e7345 |
Provenance
File details
Details for the file mongomock_motor-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: mongomock_motor-0.0.3-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.8.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 32a0dc6c6d6c90c3c42b2e27fa77a100699c104bf0acc9f6b0ee1b357d4b2143 |
|
MD5 | d7110092e30f0f389b49359db9d8e83a |
|
BLAKE2b-256 | 77b4928275574ec20ddcf1d78ec3fb2a5dadbad614340bc2f15d872265624766 |