$npx skillfedfor your agent

pytest-aiohttp

Pytest plugin for aiohttp support

Worth itPyPI TestingReleased Jun 20266.0M downloads / moApache 2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — pytest_aiohttp-1.1.1-py3-none-any.whl
v1.1.1 · released 2026-06-07 · Python >=3.10 · 3 runtime deps: pytest, aiohttp, pytest-asyncio

Yes. The plugin is actively maintained, has no known vulnerabilities, supports current Python versions (3.10–3.14), and solves a real problem—testing aiohttp apps requires boilerplate that this plugin eliminates. Install if you're writing tests for aiohttp applications and want fixtures that handle server/client lifecycle automatically.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires pytest.ini or pyproject.toml configuration with asyncio_mode set to 'auto' or 'strict' for pytest-asyncio.
  • Low friction install with three well-maintained runtime dependencies (pytest, aiohttp, pytest-asyncio).
  • Repository is active with recent commits and no archived status.

License · maintenance · safety

Apache 2.0 (permissive) — Apache 2.0 permissive license allows use in most commercial and open-source projects without significant restrictions.

last release 2026-06-07 (68 days) · last repo commit 2026-08-12 · 143 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 6,033,878 downloads/mo, #1,979 on PyPI

Verify before relying

pip install pytest-aiohttp

# In pytest.ini or pyproject.toml:
# [tool.pytest.ini_options]
# asyncio_mode = "auto"

from aiohttp import web

async def test_hello(aiohttp_client):
    app = web.Application()
    app.router.add_route("GET", "/", lambda r: web.Response(text="Hello"))
    client = await aiohttp_client(app)
    resp = await client.get("/")
    assert resp.status == 200
  • Whether the plugin works with pytest-asyncio modes other than 'auto' and 'strict' without configuration changes
  • Performance characteristics when testing large numbers of concurrent aiohttp client/server pairs
Same gist for agents: .md · .json

What it is and what it does

pytest-aiohttp is a pytest plugin that bridges pytest and aiohttp for testing async HTTP applications. It provides fixtures (like aiohttp_client) that simplify creating test servers and clients within async test functions, with automatic cleanup of resources. The plugin integrates with pytest-asyncio to run async tests, requiring you to configure pytest with asyncio_mode set to 'auto' or 'strict'.

You write tests in pytest-asyncio style, instantiate an aiohttp application, pass it to the aiohttp_client fixture to get a test client, then make requests and assert on responses. The plugin handles the lifecycle—starting the server, managing the client connection, and tearing down resources—so you focus on test logic rather than setup and teardown boilerplate.

Use it for

  • Test aiohttp web handlers by creating an in-process test server and client within async test functions
  • Verify HTTP request/response behavior (status codes, headers, body content) in aiohttp applications
  • Test middleware, error handlers, and routing logic in aiohttp web apps without external network calls
  • Validate async request/response cycles in integration tests that need both server and client running

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The plugin is actively maintained, has no known vulnerabilities, supports current Python versions (3.10–3.14), and solves a real problem—testing aiohttp apps requires boilerplate that this plugin eliminates. Install if you're writing tests for aiohttp applications and want fixtures that handle server/client lifecycle automatically.

Install

pytest-aiohttp on PyPI

Before you install

Low friction install with three well-maintained runtime dependencies (pytest, aiohttp, pytest-asyncio). Repository is active with recent commits and no archived status.

Requires pytest.ini or pyproject.toml configuration with asyncio_mode set to 'auto' or 'strict' for pytest-asyncio.

License in practice

Apache 2.0 permissive license allows use in most commercial and open-source projects without significant restrictions.

Quickstart

pip install pytest-aiohttp

# In pytest.ini or pyproject.toml:
# [tool.pytest.ini_options]
# asyncio_mode = "auto"

from aiohttp import web

async def test_hello(aiohttp_client):
    app = web.Application()
    app.router.add_route("GET", "/", lambda r: web.Response(text="Hello"))
    client = await aiohttp_client(app)
    resp = await client.get("/")
    assert resp.status == 200

Verify before relying

  • Whether the plugin works with pytest-asyncio modes other than 'auto' and 'strict' without configuration changes
  • Performance characteristics when testing large numbers of concurrent aiohttp client/server pairs

Package facts

LicenseApache 2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependencies
3 packages
pytestaiohttppytest-asyncio
MaintenanceActively maintained 68 days since the last release
Last repo commit
First released
Downloads6,033,878 / month, #1,979 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 4 - BetaFramework :: AsyncIOFramework :: PytestFramework :: aiohttpIntended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Software Development :: TestingTyping :: Typed

Evidence: pytest_aiohttp-1.1.1-py3-none-any.whl

Tags

Capabilities
pytest aiohttp testingasync http server testingaiohttp fixtures pytesttest aiohttp client serverpytest asyncio aiohttp
Topics
async-testingaiohttppytest-plugin

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pytest aiohttp testing”

  • pytest-aiohttpPytest plugin that provides fixtures for testing aiohttp applications…
  • aiointerceptIntercepts aiohttp client requests by routing them through a real…
  • aresponsesMocks external HTTP/HTTPS services for asyncio-based tests by…

Give your agent the search over MCP, or paste the wish link into any chat.

More Testing packages

pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo
virtualenv Worth it
PyPI · Libraries · released Aug 2026

virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.

MITpure Python · 3.9+
532.9Mdownloads / mo
coverage Worth it
PyPI · Testing · released Aug 2026

Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.

Install it if you want to measure test completeness or enforce coverage thresholds in your project.

permissive licensepure Python · 3.10+
335.8Mdownloads / mo
pytest-asyncio Worth it
PyPI · Testing · released May 2026

pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.

Install it if you write tests for any asyncio-based code.

Apache-2.0pure Python · 3.10+
275.9Mdownloads / mo
pytest-json-ctrf Worth it
PyPI · Testing · released Jul 2026

A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.

Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.

MITpure Python · 3.8+
273.0Mdownloads / mo

See also pytest-homeassistant-custom-component · aresponses · aioresponses · pytest-qt · aiointercept · pytest-selenium · pytest-aio · molotov · pytest-asyncio-concurrent