1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
""" Tests for miscellaneous routes defined in main.py """ from fastapi.testclient import TestClient from serverctl_deployd.main import app client = TestClient(app) def test_root() -> None: """Test root route""" response = client.get("/") assert response.status_code == 200 assert response.json() == { "message": "Working!" } |