English names: orchestration (cycle, context, runner, repositories), its steps, fields and CLI, recomputation, follow_up and reports

This commit is contained in:
2026-11-08 17:28:24 -06:00
committed by rockdrigo
parent ea228da7b4
commit 73b1db1121
36 changed files with 510 additions and 512 deletions
+4 -4
View File
@@ -97,15 +97,15 @@ def test_report_endpoints(client):
def test_indicators_recompute_from_imported_rows(client):
from webapi.indicadores_vivos import ColaDeRecalculo
from webapi.recomputation import RecomputationQueue
cola = ColaDeRecalculo()
cola = RecomputationQueue()
assert client.get("/reportes/indicadores").get_json()["cacu"]["pendiente"] is True
assert cola.atender() == ["cacu"]
assert cola.serve() == ["cacu"]
estado = client.get("/reportes/indicadores").get_json()["cacu"]
assert estado["estado"] == "ok", estado
assert estado["pendiente"] is False
assert {p["paso"] for p in estado["pasos"]} >= {"cargar", "modelos"}
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"}