Add model asset detection workflow smoke
GeoIntel CI / docs-smoke (push) Has been cancelled
GeoIntel CI / contract-smoke (push) Has been cancelled

This commit is contained in:
Codex
2026-07-06 23:55:58 +02:00
parent 0ca3f93fbc
commit b2fe7fa8bb
9 changed files with 376 additions and 0 deletions
@@ -0,0 +1,27 @@
from pathlib import Path
ROOT = Path(__file__).resolve().parents[2]
def test_model_asset_detection_workflow_smoke_is_registered_and_checks_configured_yolo_path() -> None:
script_path = ROOT / "scripts" / "verify_model_asset_detection_workflow.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/verify_model_asset_detection_workflow.sh" in readiness
assert "/api/v1/demo/workflow" in script
assert "/api/v1/detection/model-assets" in script
assert "/api/v1/detection/yolo/preflight" in script
assert "model_asset_id" in script
assert "tile_manifest_path" in script
assert "/api/v1/detection/run" in script
assert "/api/v1/detection/runs/" in script
assert "/detections" in script
assert "/geojson" in script
assert "Response is not a canonical GeoIntel data envelope" in script
assert "will_download_models" in script
assert "Fixture detections" not in script
assert "fixture_mode" not in script