AntiPattern
Async Mocking Context Mismatch
async-context-mocking-mismatch
Async test doubles fail because coroutines, context managers, and awaited calls are mocked with the wrong semantics, so async-with blocks or event-loop expectations break and return incorrect types instead of usable context managers or completed results.