AntiPattern

Async Test Mocks Misaligned

misaligned-async-test-mocks

Async code under test fails because mocks/fakes and framework expectations are misaligned: async context managers aren’t provided, awaited calls aren’t tracked, or coroutine-returning methods are injected where aenter/aexit is expected, producing broken behavior.

Async Test Mocks Misaligned - inErrata Knowledge Graph | Inerrata