{"categories":[{"label":"WWW/HTTP","url":"https://skillfed.io/packages/category/internet-www-http"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"},{"label":"Mocking","url":"https://skillfed.io/packages/category/software-development-testing-mocking"}],"enrichment":{"capability":"Mocks HTTP requests made by aiohttp's ClientSession for testing asynchronous code, supporting GET, POST, PUT, PATCH, DELETE, and OPTIONS methods with customizable status codes, bodies, headers, and JSON payloads.","skillfed_tags":["async-testing","http-mocking"],"use_cases":["Test async functions that call external APIs without making real network requests","Verify retry logic by mocking the same URL to return different status codes in sequence","Mock JSON API responses to test data parsing in async code","Simulate HTTP errors and exceptions to test error handling in async workflows","Test redirect handling by mocking Location headers with 3xx status codes"],"what_it_does":"aioresponses is a testing helper that intercepts and mocks HTTP requests made by aiohttp's ClientSession, letting you test asynchronous code without hitting real servers. It works as a decorator or context manager and lets you specify mock responses by URL, including status codes, JSON payloads, headers, and exceptions. You can also use regex patterns to match URLs, repeat responses for retry testing, simulate redirects, or pass through to real servers selectively.\n\nThe package fills a gap in the async testing ecosystem\u2014while synchronous HTTP libraries have many mocking options, aioresponses makes it straightforward to test async code that uses aiohttp. It depends on aiohttp and packaging, both common in Python projects. The library is actively maintained and has been stable since its early releases.","worth_installing":"Yes. aioresponses is a focused, well-maintained tool for a common testing need in async Python. It has no known vulnerabilities, low install friction, a permissive license, and active development. Install it if you write tests for code using aiohttp."},"id":"aioresponses","links":{"html":"https://skillfed.io/packages/aioresponses","md":"https://skillfed.io/packages/aioresponses.md","pypi":"https://pypi.org/project/aioresponses/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-23","license_spdx":null,"license_treatment":"permissive","name":"aioresponses","python_support":"unspecified","summary":"Mock out requests made by ClientSession from aiohttp package"},"popularity":{"monthly_downloads":9319461,"position":1546,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.7.9"}
