Flash out API test suite

This commit is contained in:
2026-06-20 04:01:24 -04:00
parent 78d738b0ee
commit fc394b8555
19 changed files with 1818 additions and 51 deletions
+14
View File
@@ -0,0 +1,14 @@
def test_root_returns_api_metadata(client):
response = client.get("/")
assert response.status_code == 200
assert response.json()["message"] == "Airfield PPR API"
assert response.json()["docs"] == "/docs"
def test_health_check_reports_database_connection(client):
response = client.get("/health")
assert response.status_code == 200
assert response.json()["status"] == "healthy"
assert response.json()["database"] == "connected"