Files
geointel/backend/tests/test_sprint21_demo_workflow_smoke.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

30 lines
1.4 KiB
Python

from __future__ import annotations
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
def test_demo_workflow_browser_smoke_script_checks_connected_v1_state() -> None:
script = (ROOT / "scripts" / "verify_demo_export_workflow.sh").read_text(encoding="utf-8")
assert "/api/v1/demo/workflow" in script
assert "/api/v1/projects/${project_id}/areas" in script
assert "/api/v1/projects/${project_id}/datasets" in script
assert "/api/v1/projects/${project_id}/datasets/${candidate_dataset_id}/content" in script
assert "/api/v1/projects/${project_id}/datasets/${candidate_dataset_id}/vector/summary" in script
assert "GeoJSON Polygon/MultiPolygon geometry" in script
assert "Candidate vector summary does not report persisted features" in script
assert "fixtures/golden/expected_qa_metrics.json" in script
assert "Seeded QA/QC score does not match the golden F1 baseline" in script
assert "QA/QC metric {key} drifted" in script
def test_frontend_demo_action_loads_candidate_dataset_details_for_map_layer() -> None:
demo_hook = (ROOT / "frontend" / "src" / "hooks" / "useDemoWorkflow.ts").read_text(encoding="utf-8")
assert "const candidateDataset = projectData?.datasets?.find" in demo_hook
assert "dataset.id === result.candidate_dataset_id" in demo_hook
assert "await loadDatasetDetails(result.project_id, candidateDataset)" in demo_hook