From dffd33a7bc19eadb1b7e02fa99be14a06821eb08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Trevi=C3=B1o?= Date: Fri, 27 Nov 2026 08:46:05 -0600 Subject: [PATCH] Synthea's dead come on top of the living it was asked for --- tests/test_synthea.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_synthea.py b/tests/test_synthea.py index b739a6d..bd28826 100644 --- a/tests/test_synthea.py +++ b/tests/test_synthea.py @@ -43,7 +43,8 @@ def test_a_synthea_population_comes_in_through_the_fhir_door(api, platform, tmp_ bundles = _population(tmp_path / "synthea") patients = sum(1 for b in bundles for e in b["entry"] if e["resource"]["resourceType"] == "Patient") # fmt: skip - assert patients == 20 and _reports(bundles, "cervical_cytology") > 40 + # Synthea counts the living: the women who died come on top of the twenty. + assert patients >= 20 and _reports(bundles, "cervical_cytology") > 40 receiving = DOOR.read_text().replace("{sender}", "synthea") ok(api.put("/ingest/pipelines/synthea", json=json.loads(receiving)))