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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user