Models are listed with their titles

This commit is contained in:
Roberto Treviño
2026-11-29 12:39:00 -06:00
parent 4ef38c18e2
commit c9b60b190b
4 changed files with 12 additions and 5 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ def test_cama_from_the_hospital_to_indicators(api, platform, tmp_path):
# none is promoted without the clinical validation.
current = json.loads((REFERENCE / "models.json").read_text())
wait_for(api, ok(api.post("/models/cama/train", json={"as_of": TRAINED_ON}))["run_id"])
names = ok(api.get("/models/cama"))
names = [m["name"] for m in ok(api.get("/models/cama"))]
assert set(names) == {n for n, m in current.items() if m["status"] == "ok"}
for name in names:
(version,) = ok(api.get(f"/models/cama/{name}/versions"))