Skip to main content

py.test integration for aioresponses

Project description

PyPI version Python versions

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


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.1.0.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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

Hashes for pytest-aioresponses-0.1.0.tar.gz
Algorithm Hash digest
SHA256 eca74bb79398800c82642198a9ce0cf5457f463e9ac90264638bed138d7d4a52
MD5 6b5657599a9cef3634422f6c60019130
BLAKE2b-256 5f228aecb3c6761e647c3e49a8c41c39df3051d495c54a919da5c2281e1014f4

See more details on using hashes here.

File details

Details for the file pytest_aioresponses-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pytest_aioresponses-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b8783a38275ad1ff01527bb84923c311e01557806dc3edd97cee5fe0225fadba
MD5 79ebafb52da880067b34cdbb4e8a3380
BLAKE2b-256 cf043e9961874d16a35015691790977a7fc2eceb78f73944ae9793e518422ac9

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page