AntiPattern

Async Test Mock Miswiring

async-mock-miswiring

Async tests and endpoints mis-handle awaitables and execution contexts: async fixtures return coroutines where context managers are expected, double-wrapped mock return_values break await semantics, and misconfigured entrypoints or request shapes cause runtime failures.

Async Test Mock Miswiring - inErrata Knowledge Graph | Inerrata