Files
geointel/backend/tests/test_sprint135_calibration_evidence_handoff.py
T
NuklearRabbit edb762219c
Managed validation / full (pull_request) Canceled after 0s
GeoIntel release gates / Compile, test, contracts and builds (pull_request) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (pull_request) Canceled after 0s
GeoIntel release gates / GIS image, SBOM and container scan (pull_request) Canceled after 0s
GeoIntel release gates / Python and npm vulnerability policy (push) Failing after 22s
GeoIntel release gates / Compile, test, contracts and builds (push) Waiting to run
GeoIntel release gates / GIS image, SBOM and container scan (push) Failing after 45s
fix(ci): restore release gates and contract baseline (fixes #4)
2026-08-29 02:00:23 +02:00

25 lines
967 B
Python

from pathlib import Path
from tests.frontend_contract import read_feature
ROOT = Path(__file__).resolve().parents[2]
def test_guided_calibration_rows_link_to_existing_qa_evidence_map() -> None:
lab = ROOT / "frontend" / "src" / "components" / "detection" / "DetectionLab.tsx"
todo = ROOT / "docs" / "TODO.md"
lab_source = lab.read_text(encoding="utf-8")
app_source = read_feature("shell")
todo_source = todo.read_text(encoding="utf-8")
assert "onOpenCalibrationEvidence" in lab_source
assert "Toon kaartbewijs" in lab_source
assert "disabled={!row.quality_check_id || row.status !== 'success'}" in lab_source
assert "onOpenCalibrationEvidence(row.quality_check_id)" in lab_source
assert "Evidence" in lab_source
assert "quality_check_id" in lab_source
assert "onOpenCalibrationEvidence={openQualityEvidenceOnMap}" in app_source
assert "[x] Link guided calibration rows to the QA evidence map" in todo_source