Support browser calibration summaries in evidence export
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user