Pytest-aiohttp
lastmod 2026-11-10created 2021-03-032 edits
pytest-aiohttp is a plugin for testing applications built with aiohttp, an asynchronous HTTP library, using pytest. It provides fixtures such as aiohttp_client and aiohttp_server, which start a test server and send requests, so that web handlers can be verified with real requests in async def test functions. Internally it uses pytest-asyncio and wraps aiohttp's test utilities in the pytest style.