pytest-asyncio-httpx-mocking

star 1.3k

When masking httpx.AsyncClient with unittest.mock in Pytest, AsyncMock must be used instead of MagicMock for async methods like post/get to prevent TypeError when awaited.

Project-N-E-K-O By Project-N-E-K-O schedule Updated 3/22/2026

Skill instructions (SKILL.md) could not be loaded from local cache or raw GitHub repository.

Install via CLI
npx skills add https://github.com/Project-N-E-K-O/N.E.K.O --skill pytest-asyncio-httpx-mocking
Repository Details
star Stars 1,278
call_split Forks 173
navigation Branch main
article Path SKILL.md
More from Creator
Project-N-E-K-O
Project-N-E-K-O Explore all skills →