{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"},{"label":"Mocking","url":"https://skillfed.io/packages/category/software-development-testing-mocking"}],"enrichment":{"capability":"Intercepts aiohttp client requests by routing them through a real test server, enabling HTTP testing without mocking at the socket layer.","skillfed_tags":["aiohttp","async-testing","pytest-plugin"],"use_cases":["Test async code that makes HTTP requests without hitting real servers or mocking the socket layer","Verify that your client correctly serializes headers, bodies, and query parameters through the full aiohttp stack","Intercept and inspect requests in callbacks to assert on what the client actually sent","Run integration tests with a session-scoped server via pytest fixture to avoid per-test startup overhead","Migrate from aioresponses while keeping most of your test code unchanged"],"what_it_does":"aiointercept is a testing library that mocks aiohttp HTTP requests by starting a real aiohttp.web server and routing client requests to it instead of replacing them with fake objects. Unlike pure mocking libraries, your code runs its full HTTP stack\u2014serialization, header handling, content-type negotiation\u2014but the remote endpoint is replaced with a local test server. You register responses by URL pattern and receive real aiohttp.web.Request objects in callbacks, letting you inspect what the client actually sent. It supports both direct URL redirection and transparent DNS interception for hardcoded URLs.\n\nThe library ships with a pytest plugin that runs a session-scoped server and provides the aiointercept_mock fixture, clearing registered handlers between tests to prevent leakage. It aims for API compatibility with aioresponses, making it a near drop-in replacement for existing test suites. Requires Python \u22653.10 and aiohttp \u22653.13.","worth_installing":"Yes. It fills a real gap between pure mocking (fast but unrealistic) and hitting real servers (slow and fragile). Low install friction, no security issues, active maintenance, and MIT licensing make it a safe choice for async HTTP testing."},"id":"aiointercept","links":{"html":"https://skillfed.io/packages/aiointercept","md":"https://skillfed.io/packages/aiointercept.md","pypi":"https://pypi.org/project/aiointercept/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-07-08","license_spdx":"MIT","license_treatment":"permissive","name":"aiointercept","python_support":"supports_current","summary":"aiohttp mock library that routes requests through a real test server"},"popularity":{"monthly_downloads":109210,"position":12526,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.1.9"}
