ci: add deployment workflow and automated tests
Deploy TodoList / deploy (push) Failing after 2s

This commit is contained in:
2026-07-31 09:38:39 +08:00
parent 1e142f1de4
commit 2fedb6736a
10 changed files with 713 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
from fastapi.testclient import TestClient
def test_health_returns_success(client: TestClient) -> None:
response = client.get("/health")
assert response.status_code == 200
assert response.json() == {"status": "ok"}
def test_unknown_route_returns_404(client: TestClient) -> None:
response = client.get("/not-exist")
assert response.status_code == 404