Skip to main content

Async mock HTTP server for pytest, built on top of aiohttp.

Project description

async-pytest-httpserver

PyPI PyPI Downloads

No AI was used in the creation of this library.

async-pytest-httpserver is a fully asynchronous mock HTTP server for use in pytest tests, built on top of aiohttp.

It is designed for testing code that performs HTTP requests (aiohttp, httpx, requests, etc.) without relying on real external services.

Features

  • Fully asynchronous - implemented using aiohttp
  • Dynamic runtime mocking - add or modify mock routes while the server is running
  • Seamless integration with pytest-aiohttp and pytest-asyncio
  • Real TCP server - works with any HTTP client (aiohttp, httpx, requests, etc.)
  • Supports async handlers - easily define coroutine-based responses

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

async_pytest_httpserver-0.1.1.tar.gz (67.5 kB view details)

Uploaded Source

Built Distribution

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

async_pytest_httpserver-0.1.1-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file async_pytest_httpserver-0.1.1.tar.gz.

File metadata

File hashes

Hashes for async_pytest_httpserver-0.1.1.tar.gz
Algorithm Hash digest
SHA256 0b50ea8cf5c32dae46124353702c2d65548fbf102a238725ce343ff3a1d3f0ed
MD5 1a574a0e5ecb126297b3bdb95ea58962
BLAKE2b-256 48528f254653cbb1bdfd4b178b7c17474781e02fc24e22277331bb305c7980b5

See more details on using hashes here.

File details

Details for the file async_pytest_httpserver-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for async_pytest_httpserver-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 432f3c63f4571de9d5afbeefd37ebfb787a52afe29fd7492fb169f61487ea665
MD5 371f5712f470351ffb61374cff89eabf
BLAKE2b-256 4dd986423204444222f8226cf6aa67b784657c44e3f82d4dafbb44d9b92a084a

See more details on using hashes here.

Supported by

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