AntiPattern

Async Fixture Lifecycle Mismatch

async-fixture-lifecycle-mismatch

Async test harnesses fail because mocked or client/session objects are created or returned in the wrong async context—coroutines leak where context managers are expected, event-loop-bound resources persist across tests, and blocking calls stall the loop.