py.test integration for aioresponses
Project description
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.
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest_aioresponses-0.3.0.tar.gz.
File metadata
- Download URL: pytest_aioresponses-0.3.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.10.6 Linux/5.15.0-130-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5677b32dfa1a36908b347524b5867aab35ac1c5ce1d4970244d6f66009bca7b6
|
|
| MD5 |
70c752b94c323ed70a007e96cb0c4e68
|
|
| BLAKE2b-256 |
15f088ea99ad637726e12640199464268754f336c54b87e99f898d7c9926b71b
|
File details
Details for the file pytest_aioresponses-0.3.0-py3-none-any.whl.
File metadata
- Download URL: pytest_aioresponses-0.3.0-py3-none-any.whl
- Upload date:
- Size: 3.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.5 CPython/3.10.6 Linux/5.15.0-130-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60f3124ff05a0210a5f369dd95e4cf66090774ba76b322f7178858ce4e6c1647
|
|
| MD5 |
d863cf59f00b47de00d86c9479fdea2a
|
|
| BLAKE2b-256 |
8278d7e10efd0e1c3ca9195d6de264536989a3a1f43baefed7d4a8ac79e2c938
|