Test your Chirp app the way it actually runs — drive real requests through the ASGI handler, then assert on the fragment, OOB, and SSE responses that come back. Start with the TestClient to make requests without a running server, then reach for the fragment and SSE assertions to check the hypermedia your handlers return.
TestClient with async context manager
Make requests against your app without a running server.
Fragment, OOB, and SSE assertion helpers
Check the fragments, out-of-band swaps, htmx headers, and SSE wiring your handlers return.
Mock LLM providers for agent and SSE chat tests
Script tool rounds and streamed answers without live API keys.