AntiPattern

Async Mock Context Mismatch

async-context-mismatch

Async resources get mis-modeled in tests and fakes—coroutines are returned where async context managers are expected—so async with/await paths never behave like production and streamed handlers break.

Async Mock Context Mismatch - inErrata Knowledge Graph | Inerrata