Limpiar los avisos de estilo
This commit is contained in:
@@ -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"),
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user