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 0a8e3577a1
commit 9461dfbd20
6 changed files with 53 additions and 9 deletions
+2 -1
View File
@@ -70,12 +70,13 @@ def groups(measure: dict) -> dict[str, str]:
def test_each_contract_publishes_the_figures_the_page_can_draw(measures):
"""Pins down: the two distributions offer the donut and the bars and the two durations their box plot; the C1
"""Pins down: the two distributions offer the donut and the bars and the four durations their box plot; the C1
proportions and the risk bands none, because no figure is approved for them yet. Fails if a figure is declared
that the page has no builder for, or one is dropped."""
assert {i: figures(m) for i, m in measures.items()} == {
"CACU-EU7": ["fig_c2_donas", "fig_c2_barras"], "CACU-CONFIRMACION-CITOLOGIA": ["fig_c2_donas", "fig_c2_barras"],
"CACU-EU-TIEMPO-REPORTE": ["fig_c3r_caja"], "CACU-DIAS-TOMA-DIAGNOSTICO": ["fig_c3r_caja"],
"CACU-DIAS-TOMA-TRATAMIENTO": ["fig_c3r_caja"], "CACU-DIAS-DIAGNOSTICO-TRATAMIENTO": ["fig_c3r_caja"],
"CACU-EU13": [], "IND1": [], "CACU-RIESGO-BANDA": []}