"""infra routers unit tests.""" from fastapi.testclient import TestClient def test_root(test_client: TestClient) -> None: """Verify the / endpoint responds with 200 and OK status.""" response = test_client.get("/") assert response.status_code == 200 assert response.json() == {"Hello": "World!"} def test_hello(test_client: TestClient) -> None: """Verify the /hello/ endpoint responds with 200 and OK status.""" response = test_client.get("/hello/") assert response.status_code == 200 assert response.json() == {"status": "ok"}