A pytest plugin for motor, the non-blocking MongoDB driver.
Project description
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()
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
pytest-motor-0.1.4.tar.gz
(2.9 kB
view hashes)
Built Distribution
Close
Hashes for pytest_motor-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cc4991a5c4621126d270f1f720e148618f3b2bb341ab88ea83530bb7b7a95a99 |
|
MD5 | 50017c26213d108ec78e4971262404cd |
|
BLAKE2b-256 | 7f6153511c3056a375805e1b3089d1d0b5d5078137d6ea16e7dfb4b4b090db8b |