test(awooop): guard controlled automation copy
Some checks failed
Code Review / ai-code-review (push) Has been cancelled
CD Pipeline / tests (push) Successful in 5m14s
CD Pipeline / build-and-deploy (push) Failing after 1m48s
CD Pipeline / post-deploy-checks (push) Has been skipped

This commit is contained in:
Your Name
2026-06-27 22:38:28 +08:00
parent 62309d3990
commit 219fc3835c
3 changed files with 121 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
from __future__ import annotations
import runpy
from pathlib import Path
ROOT = Path(__file__).resolve().parents[3]
def test_awooop_controlled_automation_copy_guard_blocks_legacy_manual_gate_text() -> None:
guard = runpy.run_path(
str(ROOT / "scripts" / "security" / "awooop-controlled-automation-copy-guard.py")
)
guard["validate"](ROOT)