diff --git a/tests/test_cacu.py b/tests/test_cacu.py index 7a7ad96..794b14f 100644 --- a/tests/test_cacu.py +++ b/tests/test_cacu.py @@ -138,8 +138,9 @@ def test_cacu_from_the_hospital_to_indicators_and_risks(api, platform, tmp_path) old = {k: v for k, v in a[3].items() if k not in NEW_STRATA} if name == "CACU_DIAS_DIAGNOSTICO_TRATAMIENTO": # Declared difference: it starts at the diagnosis after the biopsy report, so - # it never counts more patients than the current platform's. - assert all(a[0][k] <= b[0][k] for k in b[0]), where + # it never has more patients; a treatment that same day counts, as 0 days. + assert a[0]["initial-population"] <= b[0]["initial-population"], where + assert a[0]["measure-observation"] <= a[0]["initial-population"], where continue if name == "CACU_DIAS_TOMA_DIAGNOSTICO": # Declared difference: only a diagnosis before her first colposcopy counts, so