Add demo raster workflow smoke
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user