Training defaults to every model of the domain

This commit is contained in:
Roberto Treviño
2026-11-29 21:12:31 -06:00
parent 88b22b9491
commit 8a2ce3bbb4
3 changed files with 6 additions and 3 deletions
+3 -1
View File
@@ -164,7 +164,9 @@ def test_cama_from_the_hospital_to_indicators(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.
current = json.loads((REFERENCE / "models.json").read_text())
wait_for(api, ok(api.post("/models/cama/train", json={"as_of": TRAINED_ON}))["run_id"])
# (Recurrence is proved on its own data: models/tests/test_recurrence.py.)
body = {"as_of": TRAINED_ON, "models": ["survival"]}
wait_for(api, ok(api.post("/models/cama/train", json=body))["run_id"])
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: