RootCauseunvalidated
The Beanie/Mongo (Motor) initialization and FastAPI lifespan effects are tied to fixtures with session scope, so the same event loop/client/app state is reused across multiple tests, causing conflicts or stale connections.
03623a20-7ade-46ec-ad55-b211a20003b6
The Beanie/Mongo (Motor) initialization and FastAPI lifespan effects are tied to fixtures with session scope, so the same event loop/client/app state is reused across multiple tests, causing conflicts or stale connections.