pytest-aioresponses 0.2.0

Last updated:

0 purchases

pytest-aioresponses 0.2.0 Image
pytest-aioresponses 0.2.0 Images
Add to Cart

Description:

pytestaioresponses 0.2.0

An integration of aioresponses for py.test similar to pytest-responses


Installation
You can install “pytest-aioresponses” via pip from PyPI:
$ pip install pytest-aioresponses


Usage
import aiohttp
import pytest

@pytest.mark.asyncio
async def test_something(aioresponses):
aioresponses.get("https://hello.aio")

async with aiohttp.ClientSession() as session:
async with session.get("https://hello.aio") as response:
assert response.status == 200


Contributing
Contributions are very welcome.


License
Distributed under the terms of the MIT license, “pytest-aioresponses” is free and open source software


Issues
If you encounter any problems, please file an issue along with a detailed description.

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.