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
24 lines
1.0 KiB
Python
24 lines
1.0 KiB
Python
from pathlib import Path
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
|
|
|
|
def test_guided_calibration_runner_exports_review_summary() -> None:
|
|
lab = ROOT / "frontend" / "src" / "components" / "detection" / "DetectionLab.tsx"
|
|
todo = ROOT / "docs" / "TODO.md"
|
|
|
|
lab_source = lab.read_text(encoding="utf-8")
|
|
todo_source = todo.read_text(encoding="utf-8")
|
|
|
|
assert "downloadCalibrationSummary" in lab_source
|
|
assert "buildCalibrationSummaryExport" in lab_source
|
|
assert "downloadJsonFile('detection-calibration-summary.json'" in lab_source
|
|
assert "evidence_geojson_url" in lab_source
|
|
assert "/api/v1/projects/${projectId}/quality-checks/${row.quality_check_id}/evidence/geojson" in lab_source
|
|
assert "Samenvatting downloaden" in lab_source
|
|
assert "disabled={detectionCalibrationRows.length === 0 || !selectedProjectId}" in lab_source
|
|
assert "calibration_thresholds" in lab_source
|
|
assert "quality_check_ids" in lab_source
|
|
assert "[x] Add guided calibration summary export from the Detection Lab" in todo_source
|