diff --git a/tests/test_governance_endpoints.py b/tests/test_governance_endpoints.py index bdee39d..a342599 100644 --- a/tests/test_governance_endpoints.py +++ b/tests/test_governance_endpoints.py @@ -113,13 +113,13 @@ REPORTS = {"technical_validation_report_uri": "docs/tecnica.pdf", "clinical_vali def test_model_version_lifecycle_over_http(client): - """A version registered over HTTP carries no routine records or model, so it can't be promoted; trained ones can, - and promoting the second retires the first. Fails if the ML-01a/ML-01b checks start trusting what's declared - over the API, or promotion stops retiring the previous version.""" + """A version registered over HTTP carries no saved model, so it can't be promoted; trained ones can, and promoting + the second retires the first. Fails if the ML-01b check starts trusting what's declared over the API, or promotion + stops retiring the previous version.""" declared = _register(client, "v0", scenario="lifecycle") checks = client.get(f"/governance/model-versions/cacu/lifecycle/{declared['version']}/checks").get_json() assert checks["ready"] is False - assert [c["code"] for c in checks["checks"] if not c["passed"]] == ["ML-01a", "ML-01b"] + assert [c["code"] for c in checks["checks"] if not c["passed"]] == ["ML-01b"] blocked = client.post(f"/governance/model-versions/cacu/lifecycle/{declared['version']}/promote") assert blocked.status_code == 409 and any(not c["passed"] for c in blocked.get_json()["checks"])