NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
PyPI · #1847 most downloaded on PyPI
Pytest plugin for aiohttp support
Last release 4 months ago
07 Jun 2026
Release timing varies
gaps range from 2 weeks to 4.1 years
Nearly every release is documented
notes for 13 of 14 stable releases
Nothing withdrawn
no release was ever pulled
10 years old
15 releases · first in 2016
pytest plugin for aiohttp support
pytest plugin for aiohttp support
The library provides useful fixtures for creation test aiohttp server and client.
$ pip install pytest-aiohttp
Add asyncio_mode = auto line to pytest configuration (see pytest-asyncio modes for details). The plugin works with strict mode also.
Write tests in pytest-asyncio style using provided fixtures for aiohttp test server and client creation. The plugin provides resources cleanup out-of-the-box.
The simple usage example:
from aiohttp import web
async def hello(request):
return web.Response(body=b"Hello, world")
def create_app():
app = web.Application()
app.router.add_route("GET", "/", hello)
return app
async def test_hello(aiohttp_client):
client = await aiohttp_client(create_app())
resp = await client.get("/")
assert resp.status == 200
text = await resp.text()
assert "Hello, world" in text
See aiohttp documentation <https://docs.aiohttp.org/en/stable/testing.html#pytest> for more details about fixtures usage.
Drop Python 3.9 (#162)
Typing improvements (#69, #162)
One column per quarter.
pytest plugin for aiohttp support
pytest plugin for aiohttp support
The library provides useful fixtures for creation test aiohttp server and client.
$ pip install pytest-aiohttp
Add asyncio_mode = auto line to pytest configuration (see pytest-asyncio modes for details). The plugin works with strict mode also.
Write tests in pytest-asyncio style using provided fixtures for aiohttp test server and client creation. The plugin provides resources cleanup out-of-the-box.
The simple usage example:
from aiohttp import web
async def hello(request):
return web.Response(body=b"Hello, world")
def create_app():
app = web.Application()
app.router.add_route("GET", "/", hello)
return app
async def test_hello(aiohttp_client):
client = await aiohttp_client(create_app())
resp = await client.get("/")
assert resp.status == 200
text = await resp.text()
assert "Hello, world" in text
See aiohttp documentation <https://docs.aiohttp.org/en/stable/testing.html#pytest> for more details about fixtures usage.
Drop Python 3.8 (#57)
Export the plugin types at top-level (#60, #61)
Add host parameter to aiohttp_server fixture (#63)
pytest plugin for aiohttp support
pytest plugin for aiohttp support
The library provides useful fixtures for creation test aiohttp server and client.
$ pip install pytest-aiohttp
Add asyncio_mode = auto line to pytest configuration (see pytest-asyncio modes for details). The plugin works with strict mode also.
Write tests in pytest-asyncio style using provided fixtures for aiohttp test server and client creation. The plugin provides resources cleanup out-of-the-box.
The simple usage example:
from aiohttp import web
async def hello(request):
return web.Response(body=b"Hello, world")
def create_app():
app = web.Application()
app.router.add_route("GET", "/", hello)
return app
async def test_hello(aiohttp_client):
client = await aiohttp_client(create_app())
resp = await client.get("/")
assert resp.status == 200
text = await resp.text()
assert "Hello, world" in text
See aiohttp documentation <https://docs.aiohttp.org/en/stable/testing.html#pytest> for more details about fixtures usage.
pytest plugin for aiohttp support
pytest plugin for aiohttp support
The library provides useful fixtures for creation test aiohttp server and client.
$ pip install pytest-aiohttp
Add asyncio_mode = auto line to pytest configuration (see pytest-asyncio modes for details). The plugin works with strict mode also.
Write tests in pytest-asyncio style using provided fixtures for aiohttp test server and client creation. The plugin provides resources cleanup out-of-the-box.
The simple usage example:
from aiohttp import web
async def hello(request):
return web.Response(body=b"Hello, world")
def create_app():
app = web.Application()
app.router.add_route("GET", "/", hello)
return app
async def test_hello(aiohttp_client):
client = await aiohttp_client(await create_app())
resp = await client.get("/")
assert resp.status == 200
text = await resp.text()
assert "Hello, world" in text
See aiohttp documentation <https://docs.aiohttp.org/en/stable/testing.html#pytest> for more details about fixtures usage.
Fix failure with aiohttp_client fixture usage when asyncio_mode=strict. #25
Fix loop and proactor_loop fixtures. #22 _
Fix loop and proactor_loop fixtures. #22
Restore implicit switch to asyncio_mode = auto if *legacy* mode is detected.
Restore implicit switch to asyncio_mode = auto if legacy mode is detected.
Don't implicitly switch from legacy to auto asyncio_mode, the integration doesn't work well.
Don't implicitly switch from legacy to auto asyncio_mode, the integration doesn't work well.
The plugin is compatible with pytest-asyncio now. It uses pytest-asyncio for async tests running and async fixtures support, providing by itself only
The plugin is compatible with pytest-asyncio now. It uses pytest-asyncio for async tests running and async fixtures support, providing by itself only fixtures for creating aiohttp test server and client.
Nothing published for this version
Fix backward incompatible changes introduced by pytest 3.3+
pytest 3.3+Fix backward incompatibility changes introduced by pytest 3.3+
- Add MANIFEST.in file
Add MANIFEST.in file
- Fix README markup
Fix README markup
- Fix an url in setup.py
Fix an url in setup.py
- Initial release
Initial release
Nothing published for this version
Your coding agent can read these notes before it upgrades. Set up the MCP server →