"""Security tests — landing HTML must not leak secrets or load external scripts."""
from __future__ import annotations
import re
from pathlib import Path
from tools.landing.validate import SECRET_PATTERNS, validate_landing
KIT_ROOT = Path(__file__).resolve().parents[2]
LANDING_DIR = KIT_ROOT / "docs" / "landing"
def test_no_external_script_tags() -> None:
for html_path in LANDING_DIR.rglob("*.html"):
text = html_path.read_text(encoding="utf-8")
assert not re.search(r"""