Async mock HTTP server for pytest, built on top of aiohttp.
Project description
async-pytest-httpserver
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
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 async_pytest_httpserver-0.1.1.tar.gz.
File metadata
- Download URL: async_pytest_httpserver-0.1.1.tar.gz
- Upload date:
- Size: 67.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0b50ea8cf5c32dae46124353702c2d65548fbf102a238725ce343ff3a1d3f0ed
|
|
| MD5 |
1a574a0e5ecb126297b3bdb95ea58962
|
|
| BLAKE2b-256 |
48528f254653cbb1bdfd4b178b7c17474781e02fc24e22277331bb305c7980b5
|
File details
Details for the file async_pytest_httpserver-0.1.1-py3-none-any.whl.
File metadata
- Download URL: async_pytest_httpserver-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.7.17
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
432f3c63f4571de9d5afbeefd37ebfb787a52afe29fd7492fb169f61487ea665
|
|
| MD5 |
371f5712f470351ffb61374cff89eabf
|
|
| BLAKE2b-256 |
4dd986423204444222f8226cf6aa67b784657c44e3f82d4dafbb44d9b92a084a
|