AntiPattern

Awaitable Protocol Mismatch

awaitable-protocol-mismatch

Async test and routing doubles return coroutines or non-async-compatible objects where the framework expects an awaitable context (aenter/aexit) or a real async callable; mocks/fixtures then skip awaits or yield wrong types, breaking middleware and route execution.

Awaitable Protocol Mismatch - inErrata Knowledge Graph | Inerrata