Files
Unraid-AppOps-Gateway-Public/backend/tests/test_managed_validation_parallel.py
T

19 lines
692 B
Python

from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
WORKFLOW = ROOT / ".gitea" / "workflows" / "managed-validation.yml"
def test_managed_validation_keeps_parallel_lanes_and_full_gate():
text = WORKFLOW.read_text(encoding="utf-8")
for job in ("preflight:", "backend:", "frontend:", "security:", "polyglot:", "full:"):
assert f" {job}" in text
assert "needs: [preflight, backend, frontend, security, polyglot]" in text
assert "All managed validation lanes passed." in text
def test_preflight_preserves_docs_only_fast_path():
text = WORKFLOW.read_text(encoding="utf-8")
assert "runtime_change" in text
assert "*.md|*.mdx|docs/*" in text