Skip to main content
PyPI version Python versions

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.

Download files

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

Source Distribution

pytest_aioresponses-0.3.0.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_aioresponses-0.3.0-py3-none-any.whl (3.3 kB view details)

Uploaded Python 3

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

Hashes for pytest_aioresponses-0.3.0.tar.gz
Algorithm Hash digest
SHA256 5677b32dfa1a36908b347524b5867aab35ac1c5ce1d4970244d6f66009bca7b6
MD5 70c752b94c323ed70a007e96cb0c4e68
BLAKE2b-256 15f088ea99ad637726e12640199464268754f336c54b87e99f898d7c9926b71b

See more details on using hashes here.

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

Hashes for pytest_aioresponses-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60f3124ff05a0210a5f369dd95e4cf66090774ba76b322f7178858ce4e6c1647
MD5 d863cf59f00b47de00d86c9479fdea2a
BLAKE2b-256 8278d7e10efd0e1c3ca9195d6de264536989a3a1f43baefed7d4a8ac79e2c938

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 files

0.2.0

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page