Testing
Test your project with standard pytest(opens in new tab) and pytest-asyncio(opens in new tab) workflows.
bashuv run pytestuv run pytest tests/test_app.py -q
Usage
pythonfrom main import appfrom fastapi.testclient import TestClientclient = TestClient(app)def test_healthcheck() -> None:"""Return the LongLink runtime health payload."""response = client.get("/health")assert response.status_code == 200