test(cacu): cover the two times to treatment

The CaCu catalog holds nine measures. A fixture adds H-004's colposcopy and treatment on top of the shared data, and a
test pins the days of both intervals with a 60-day horizon.
This commit is contained in:
2026-11-21 19:35:44 -06:00
parent 0c102d89f7
commit 14e11e20b6
6 changed files with 53 additions and 9 deletions
+2 -1
View File
@@ -108,7 +108,8 @@ def test_indicators_recompute_from_imported_rows(client):
assert {p["paso"] for p in estado["pasos"]} >= {"load", "event_models"}
assert {m["id"] for m in client.get("/cacu/indicadores").get_json()} == {
"IND1", "CACU_EU13", "CACU_EU7", "CACU_CONFIRMACION_CITOLOGIA", "CACU_EU_TIEMPO_REPORTE",
"CACU_DIAS_TOMA_DIAGNOSTICO", "CACU_RIESGO_BANDA"}
"CACU_DIAS_TOMA_DIAGNOSTICO", "CACU_DIAS_TOMA_TRATAMIENTO", "CACU_DIAS_DIAGNOSTICO_TRATAMIENTO",
"CACU_RIESGO_BANDA"}
assert client.post("/reportes/indicadores/cacu/recalcular").status_code == 202
assert client.post("/reportes/indicadores/xx/recalcular").status_code == 404