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
File details
Details for the file pytest-aioresponses-0.1.0.tar.gz
.
File metadata
- Download URL: pytest-aioresponses-0.1.0.tar.gz
- Upload date:
- Size: 3.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.6 Linux/5.4.0-52-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | eca74bb79398800c82642198a9ce0cf5457f463e9ac90264638bed138d7d4a52 |
|
MD5 | 6b5657599a9cef3634422f6c60019130 |
|
BLAKE2b-256 | 5f228aecb3c6761e647c3e49a8c41c39df3051d495c54a919da5c2281e1014f4 |
File details
Details for the file pytest_aioresponses-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pytest_aioresponses-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.6 Linux/5.4.0-52-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b8783a38275ad1ff01527bb84923c311e01557806dc3edd97cee5fe0225fadba |
|
MD5 | 79ebafb52da880067b34cdbb4e8a3380 |
|
BLAKE2b-256 | cf043e9961874d16a35015691790977a7fc2eceb78f73944ae9793e518422ac9 |