Add demo raster 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-06-23 01:47:40 +02:00
parent e64600b4b0
commit 7b093c0838
8 changed files with 290 additions and 2 deletions
@@ -599,7 +599,12 @@ def test_raster_tile_returns_manifest_payload(monkeypatch, tmp_path) -> None:
@staticmethod
def bounds(window: FakeWindow, _source_transform):
return FakeWindowBounds(window.xoff, window.yoff, window.width, window.height)
return (
float(window.xoff),
float(window.yoff),
float(window.xoff + window.width),
float(window.yoff + window.height),
)
class FakeSource:
width = 10
@@ -666,6 +671,7 @@ def test_raster_tile_returns_manifest_payload(monkeypatch, tmp_path) -> None:
assert payload["manifest"]["source_dataset_id"] == str(dataset_id)
assert payload["manifest"]["source_raster_id"] == str(dataset_id)
assert payload["manifest"]["count"] == payload["count"]
assert payload["manifest"]["tiles"][0]["bounds"] == [0.0, 0.0, 4.0, 4.0]
assert payload["manifest"]["ai_inference"] is False
assert payload["manifest"]["tile_server"] is None