Why Starlette's TestClient Might Break Your pytest-asyncio Tests (And How to Fix It)
Testing FastAPI applications with async resources? If you're using Starlette's TestClient, you're mixing sync and async contexts in ways that might break your tests. Here's why httpx.AsyncClient should be your go-to choice for keeping everything properly async.