Files
geointel/backend/tests/test_sprint125_detection_calibration_evidence_bundle.py
T
Jens faeb58ef6d
GeoIntel release gates / Compile, test, contracts and builds (push) Successful in 1m49s
GeoIntel release gates / Python and npm vulnerability policy (push) Successful in 21s
GeoIntel release gates / Production AI image, SBOM and container scan (push) Successful in 5m39s
GeoIntel release gates / Deploy exact gated revision to Unraid (push) Failing after 58m43s
Initial public release
2026-08-31 21:56:53 +02:00

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