Create a pytest fixture that sets app.dependency_overrides[get_llm] = lambda: FakeLLM() (cleaning up overrides in teardown), uses httpx.AsyncClient(transport=ASGITransport(app=app), base_url='http://test'), and wraps each DB test in a rolled-back transaction or isolated schema.
Follow-up Interview Question · Why should you test both valid payloads and boundary/auth failure cases (401, 403, 422)?