Skip to main content

py.test integration for aioresponses

Project description

PyPI version Python versions

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


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

$ pip install pytest-aioresponses


import aiohttp
import pytest

async def test_something(aioresponses):

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


Contributions are very welcome.


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


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

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pytest-aioresponses, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size pytest_aioresponses-0.2.0-py3-none-any.whl (3.3 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size pytest-aioresponses-0.2.0.tar.gz (3.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page