Scoring a TEA domain also relates the association

The Calcular riesgos button runs the domain score job, which only scored the curves: the association scores that become the RiskAssessments were written by the tea_eeg job alone, so a platform driven from the buttons had champions and no risk analyses. The domain routine now ends with the association, score relates it, and the gold build after a score is the TEA selection that includes the association tables.
This commit is contained in:
2026-12-01 17:48:03 -06:00
parent 24534606f1
commit 4056297608
3 changed files with 9 additions and 3 deletions
+5
View File
@@ -5,6 +5,7 @@ import pytest
from pydantic import ValidationError
from models.definitions import ScopeConfig, after_ingest
from models.tea.jobs import ASSOCIATION, JOBS, MODELS
from persistance import eeg
@@ -36,6 +37,10 @@ def test_scope_validation():
ScopeConfig(mode="first_n").model()
def test_the_domain_routine_scores_the_curves_then_relates_the_association():
assert JOBS.routine() == [*MODELS, ASSOCIATION]
def test_after_ingest_requests_a_run_only_with_pending_eegs():
skip = after_ingest("r1", lambda: False)
assert isinstance(skip, dg.SkipReason)