py.test integration for aioresponses
Project description
py.test integration for aioresponses
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. Tests can be run with tox, please ensure the coverage at least stays the same before you submit a pull request.
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.
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
Built Distribution
Close
Hashes for pytest-aioresponses-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eca74bb79398800c82642198a9ce0cf5457f463e9ac90264638bed138d7d4a52 |
|
MD5 | 6b5657599a9cef3634422f6c60019130 |
|
BLAKE2b-256 | 5f228aecb3c6761e647c3e49a8c41c39df3051d495c54a919da5c2281e1014f4 |
Close
Hashes for pytest_aioresponses-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8783a38275ad1ff01527bb84923c311e01557806dc3edd97cee5fe0225fadba |
|
MD5 | 79ebafb52da880067b34cdbb4e8a3380 |
|
BLAKE2b-256 | cf043e9961874d16a35015691790977a7fc2eceb78f73944ae9793e518422ac9 |