Files
hermes-agent/tests/scripts/test_bootstrap_pins_fragment.py
ethernet cb7c688171 test: mirror the source tree for 27 misfiled root tests; one PM home fixture
Root-level tests/ is for root-level modules; 19 files testing scripts/, 3 testing
pm/ and 5 testing hermes_cli/ move to the mirrored directory (workflow file lists
and cross-imports updated; path arithmetic bumped one level).

tests/pm gains a conftest with the isolated_machine_home fixture that seven
modules had copy-pasted verbatim.
2026-09-18 20:13:26 -04:00

14 lines
470 B
Python

"""Generated bootstrap pins must match the shared pin and mirror authorities."""
import subprocess
import sys
from pathlib import Path
def test_fragments_match_the_pin_table():
root = Path(__file__).resolve().parents[2]
result = subprocess.run(
[sys.executable, str(root / "scripts/gen-bootstrap-pins.py"), "--check"],
cwd=root, capture_output=True, text=True, timeout=60,
)
assert result.returncode == 0, result.stdout + result.stderr