Support browser calibration summaries in evidence export
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-07-08 13:41:39 +02:00
parent 4c38b7712a
commit 673f6c6160
6 changed files with 141 additions and 4 deletions
@@ -0,0 +1,25 @@
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
def test_evidence_bundle_script_accepts_browser_calibration_summary_export() -> None:
script_path = ROOT / "scripts" / "export_detection_calibration_evidence.sh"
readme_path = ROOT / "scripts" / "README.md"
todo_path = ROOT / "docs" / "TODO.md"
script = script_path.read_text(encoding="utf-8")
readme = readme_path.read_text(encoding="utf-8")
todo = todo_path.read_text(encoding="utf-8")
assert "detection-calibration-summary.json" in script
assert "export_type" in script
assert "detection_calibration_summary" in script
assert "normalize_calibration_items" in script
assert "summary.get(\"rows\")" in script
assert "root_project_id = summary.get(\"project_id\")" in script
assert "quality_check_ids" in script
assert "Browser Detection Lab calibration summary" in readme
assert "bash scripts/export_detection_calibration_evidence.sh http://192.168.10.150:1202 ./detection-calibration-summary.json" in readme
assert "[x] Allow the evidence bundle script to consume Detection Lab calibration summary exports" in todo