From 8fa2be8aab03544f3bb9f181ef654c0a2aeb8d80 Mon Sep 17 00:00:00 2001 From: alberto Date: Sat, 28 Nov 2026 06:38:32 -0600 Subject: [PATCH] TEA gate compares the indicators after the curves score: M30 counts the alterations they find --- tests/test_tea.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/test_tea.py b/tests/test_tea.py index 37ad6a7..679622d 100644 --- a/tests/test_tea.py +++ b/tests/test_tea.py @@ -207,9 +207,6 @@ def test_tea_from_the_hospital_to_indicators(api, platform, tmp_path): value = theirs["met_valor"] assert ours.get(key) == (None if value is None else pytest.approx(value, rel=1e-12)), key - # Indicators, from the platform's own EEG verdicts. - indicators(api) - # The age curves: one training run gives a version of each, from the reference cohort; # promoted after their clinical validation, they score every analysed EEG as the # current platform's curves do. @@ -230,6 +227,10 @@ def test_tea_from_the_hospital_to_indicators(api, platform, tmp_path): assert scored[key] == [None if v is None else pytest.approx(v, rel=1e-9) for v in expected], key # fmt: skip + # Indicators, from the platform's own EEG verdicts and, for M30, the alterations the + # promoted curves found (as the current platform's were captured: curves trained). + indicators(api) + # The EEG pages: every study with its verdict, and a valid one's metrics with their scores. listed = ok(api.get("/tea/eegs")) summary = json.loads((REFERENCE / "pages.json").read_text())["/governance/tea/eeg/summary"]