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
@@ -129,7 +129,7 @@ def test_cacu_from_the_hospital_to_indicators_and_risks(api, platform, tmp_path)
# Models: one training run gives a version of each, with its two generated reports;
# none is promoted without the clinical validation.
wait_for(api, ok(api.post("/models/cacu/train", json={"as_of": REFERENCE_CUTOFF}))["run_id"])
names = ok(api.get("/models/cacu"))
names = [m["name"] for m in ok(api.get("/models/cacu"))]
assert set(names) == set(current)
for name in names:
(version,) = ok(api.get(f"/models/cacu/{name}/versions"))