Skip to main content

pytest-motor

A pytest plugin for Motor, the non-blocking MongoDB driver.

Example

from motor.motor_asyncio import AsyncIOMotorClient
import pytest


@pytest.mark.asyncio
async def test_using_motor_client(motor_client: AsyncIOMotorClient) -> None:
    """This test has access to a Motor client."""
    await motor_client.server_info()

Limitations

pytest-motor currently only supports Ubuntu 18.04 and MacOS. Windows support is being worked on. If you would like support for another system, please make a GitHub Issue. Contributions are welcome!

Metadata

Release files for pytest-motor 0.2.0

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

Source distribution (sdist)

Source distribution for pytest-motor 0.2.0
File Size Uploaded
pytest-motor-0.2.0.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-motor 0.2.0
File Interpreter ABI Platform
pytest_motor-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 9.1 kB

Release files / pytest-motor-0.2.0.tar.gz

Download URL pytest-motor-0.2.0.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
c068300fb3900649ce451c7e57b20350968dcb93f0b1d3210812b68d05f053f1
BLAKE2b-256 checksum
How to use checksums
acedbe3ff05adf44bd22c8bc5506341a44cc04a3974b8a21efce3e87a4563f75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.14

Release files / pytest_motor-0.2.0-py3-none-any.whl

Download URL pytest_motor-0.2.0-py3-none-any.whl
Size 4.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8569dfc170af0292cab73499ff938d06595e8c07b9116d13b8d1ddb926592877
BLAKE2b-256 checksum
How to use checksums
9f1d23bf516bd8cad5c9119e3f895ab7827358cbcedc72462c2b632bc325dfe1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.14

Release history Release notifications | RSS feed

0.3.0

2 release files

This release

0.2.0 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

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