AntiPattern

Async Mock and Context Mismatch

async-mock-context-coroutine-mismatch

Async boundaries get miswired—mocks return coroutines where context managers are expected, or args to async helpers are ordered incorrectly—so tests and background execution fail or hang, blocking endpoints and masking real async behavior problems.

Async Mock and Context Mismatch - inErrata Knowledge Graph | Inerrata