Asyncio response mocking library for aiohttp-based code, similar to responses for requests. Version 3.0.0 supports asyncio and aiohttp. Released sporadically.
pip install aresponsesVerified import paths — ran on the pinned version, not inferred.
Basic usage of ResponsesMockServer context manager with aiohttp.
Use 'async with ResponsesMockServer() as server:'
Replace 'aresponses.match(...)' with 'ResponsesMockServer().add(...)' and use async context manager.
Import 'ResponsesMockServer' and use its async context manager.
Use 'from aresponses import ...'
Use 'ResponsesMockServer' class with 'add' method instead: 'from aresponses import ResponsesMockServer' and use 'server.add(...)'.
Change 'with' to 'async with' inside an async function.
No dependency data recorded yet.