31 lines
1.3 KiB
Python
31 lines
1.3 KiB
Python
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
|
|
|
|
def test_detection_calibration_evidence_bundle_exports_persisted_qa_evidence() -> None:
|
|
script_path = ROOT / "scripts" / "export_detection_calibration_evidence.sh"
|
|
readiness = (ROOT / "scripts" / "run_readiness_check.sh").read_text(encoding="utf-8")
|
|
|
|
assert script_path.exists()
|
|
script = script_path.read_text(encoding="utf-8")
|
|
|
|
assert "bash -n scripts/export_detection_calibration_evidence.sh" in readiness
|
|
assert "CALIBRATION_SUMMARY_PATH" in script
|
|
assert "calibration_summary.json" in script
|
|
assert "/api/v1/projects/${project_id}/quality-checks/${quality_check_id}/evidence/geojson" in script
|
|
assert "Response is not a canonical GeoIntel data envelope" in script
|
|
assert "calibration_evidence.geojson" in script
|
|
assert "calibration_evidence_summary.json" in script
|
|
assert "calibration_evidence_review.html" in script
|
|
assert "qa_evidence_role" in script
|
|
assert "match_candidate" in script
|
|
assert "false_positive" in script
|
|
assert "false_negative" in script
|
|
assert "best_by_score" in script
|
|
assert "<svg" in script
|
|
assert "demo/workflow" not in script
|
|
assert "fixture_mode" not in script
|
|
assert "will_download_models" not in script
|