Metadata-Version: 2.1
Name: pytest-motor
Version: 0.1.4
Summary: A pytest plugin for motor, the non-blocking MongoDB driver.
Home-page: https://github.com/AustinScola/pytest-motor
Author: Austin Scola
Author-email: austinscola@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Framework :: Pytest
Classifier: Topic :: Software Development :: Testing
Classifier: Typing :: Typed
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# pytest-motor

A [pytest][1] plugin for [Motor][2], the non-blocking MongoDB driver.

## Example

``` Python3
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()
```

[1]: https://docs.pytest.org/en/latest/
[2]: https://github.com/mongodb/motor/


