strengthen external parity diagnostics

This commit is contained in:
732642856
2026-07-12 15:13:30 +08:00
parent b336bdd9ac
commit 85e420cba4
10 changed files with 159 additions and 11 deletions
+17
View File
@@ -0,0 +1,17 @@
import subprocess
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
RUNNER = ROOT / "benchmarks" / "jyotish" / "scripts" / "run_pyjhora_compare.py"
def test_pyjhora_compare_help_is_non_executing():
result = subprocess.run(
[sys.executable, str(RUNNER), "--help"], cwd=ROOT, capture_output=True, text=True, timeout=15
)
assert result.returncode == 0
assert "--build-local" in result.stdout
assert "FileNotFoundError" not in result.stderr