AntiPattern

Async Context Mock Mismatch

async-context-mock-mismatch

Async code that mocks database/command execution often returns coroutines or wrapped awaitables where async-context managers are expected, causing async with blocks to break or event-loop blocking when process waits run inline.

Async Context Mock Mismatch - inErrata Knowledge Graph | Inerrata