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.2.tar.gz
(3.4 kB
view details)
Built Distributions
File details
Details for the file mongomock_motor-0.0.2.tar.gz
.
File metadata
- Download URL: mongomock_motor-0.0.2.tar.gz
- Upload date:
- Size: 3.4 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e743e42b315723f117e1a0b3efe8275c5ab728b31e36cc788ae311aadb9e5c1 |
|
MD5 | fdc62316685a6f177729e1307188942d |
|
BLAKE2b-256 | 9ae5413871fdc0d4ef776333cd6905f7293fddcd311423540845ce1423b9f31f |
Provenance
File details
Details for the file mongomock_motor-0.0.2-py3.8.egg
.
File metadata
- Download URL: mongomock_motor-0.0.2-py3.8.egg
- Upload date:
- Size: 8.8 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd71f29bd6dc96cdd2f57ce0aa55ffc33a98e4ab9fbe0848b87d7f228460c41f |
|
MD5 | 400134a34b1181eac1f1f3130bcc7c0a |
|
BLAKE2b-256 | 56a0c73e70af203fa029dc538474918107c939da397c2eab34a1b337bffc1840 |
Provenance
File details
Details for the file mongomock_motor-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: mongomock_motor-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.3 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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e71b881fb4ec14dc4bef14b70ff62e57ea84d0c881fc4f3ace5c72131ec9451 |
|
MD5 | ab30f552ba7ad21525da411fedf2a825 |
|
BLAKE2b-256 | e4a3e57f84924521b8c9253a129c125995c33d95534effceb95024c90cb80fad |