feat(tht): column_promoted/column_excluded decision types (F4)
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
from tht.decisions import DecisionType
|
||||
import typing
|
||||
|
||||
|
||||
def test_column_decision_types_exist():
|
||||
allowed = set(typing.get_args(DecisionType))
|
||||
assert "column_promoted" in allowed
|
||||
assert "column_excluded" in allowed
|
||||
|
||||
|
||||
def test_f4_emits_column_types():
|
||||
import yaml
|
||||
from pathlib import Path
|
||||
wf = yaml.safe_load(Path("workflow.yaml").read_text())
|
||||
f4 = next(p for p in wf["phases"] if p["id"] == "F4")
|
||||
assert "column_promoted" in f4["emits"]
|
||||
assert "column_excluded" in f4["emits"]
|
||||
Reference in New Issue
Block a user