Spaces:
Sleeping
Sleeping
File size: 497 Bytes
b196357 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | from __future__ import annotations
from fastapi.testclient import TestClient
from server.app import app
client = TestClient(app)
def test_operational_endpoints() -> None:
health = client.get("/health")
assert health.status_code == 200
assert health.json()["ok"] is True
tasks = client.get("/tasks")
assert tasks.status_code == 200
task_ids = {task["task_id"] for task in tasks.json()}
assert {"style_review", "logic_review", "cascade_review"}.issubset(task_ids)
|