Testing
Test your application with standard pytest(opens in new tab) workflows. Use TestClient to run the application with isolated in-memory services, without configuring a separate test environment.
bashuv run pytest <filename>
Example
pythonfrom main import appfrom longlink.testclient import TestClientclient = TestClient(app)def test_healthcheck() -> None:"""Return the LongLink runtime health payload."""response = client.get("/health")assert response.status_code == 200