Files
ThothII/harness/tests/test_column_decisions.py

20 lines
512 B
Python

import typing
from tht.decisions import DecisionType
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():
from pathlib import Path
import yaml
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"]