Limpiar los avisos de estilo

This commit is contained in:
2026-12-04 09:12:15 -06:00
parent 37c6f242f9
commit bfc964a2bb
6 changed files with 344 additions and 172 deletions
+10 -5
View File
@@ -12,14 +12,19 @@ def test_development_models_and_superseded_risks_are_not_served(monkeypatch):
for person in ("free", "lesion")
for model in ("cacu.cin2_pim", "cacu.cin2_logistic", "cacu.survival")
]
history = [{"person_id": "lesion", "date": "2025-06-01", "type": "biopsy",
"value_code": "HSIL"}] # fmt: skip
history = [
{"person_id": "lesion", "date": "2025-06-01", "type": "biopsy", "value_code": "HSIL"}
]
monkeypatch.setattr(
fhir.reads, "rows",
fhir.reads,
"rows",
lambda domain, kind, **params: stored if kind == "risk" else history,
) # fmt: skip
)
found = fhir._risks(Domain.CACU, ["free", "lesion"], date(2025, 12, 31))
assert [(r["person_id"], r["model"]) for r in found] == [
("free", "cacu.cin2_pim"), ("free", "cacu.survival"), ("lesion", "cacu.survival")] # fmt: skip
("free", "cacu.cin2_pim"),
("free", "cacu.survival"),
("lesion", "cacu.survival"),
]