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.
14 lines
470 B
Python
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
|