test(cacu): cover the times along the screening route

The CaCu catalog holds fourteen measures. A fixture adds H-007, who goes the whole route in order, and a test pins the
population, the cases and the median of each of the five new times.
This commit is contained in:
2026-11-21 23:52:20 -06:00
parent 14e11e20b6
commit abfd2b29ca
6 changed files with 69 additions and 6 deletions
+2 -1
View File
@@ -109,7 +109,8 @@ def test_indicators_recompute_from_imported_rows(client):
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_DIAS_TOMA_TRATAMIENTO", "CACU_DIAS_DIAGNOSTICO_TRATAMIENTO",
"CACU_RIESGO_BANDA"}
"CACU_DIAS_TOMA_COLPOSCOPIA", "CACU_DIAS_TOMA_BIOPSIA", "CACU_DIAS_RESULTADO_COLPOSCOPIA",
"CACU_DIAS_COLPOSCOPIA_BIOPSIA", "CACU_DIAS_BIOPSIA_DIAGNOSTICO", "CACU_RIESGO_BANDA"}
assert client.post("/reportes/indicadores/cacu/recalcular").status_code == 202
assert client.post("/reportes/indicadores/xx/recalcular").status_code == 404