Skip to content

Commit 5d333f8

Browse files
committed
load_stac: better test coverage for using bands
1 parent 908cb69 commit 5d333f8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/test_dry_run.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1267,7 +1267,7 @@ def test_load_stac_properties(dry_run_env, dry_run_tracer):
12671267

12681268
pg = {
12691269
"ls": {
1270-
"process_id": "load_stac", "arguments": {"url": "https://example.org/collections/S2", "properties": properties},
1270+
"process_id": "load_stac", "arguments": {"url": "https://example.org/collections/S2", "properties": properties, "bands": ["B04", "B05"]},
12711271
"result": True
12721272
}
12731273
}
@@ -1277,7 +1277,8 @@ def test_load_stac_properties(dry_run_env, dry_run_tracer):
12771277
source_constraints = dry_run_tracer.get_source_constraints(merge=True)
12781278

12791279
assert source_constraints == [
1280-
(("load_stac", ("https://example.org/collections/S2", (("platform", (("eq", "S2A"),),),), () )), {"properties": properties}),
1280+
(("load_stac", ("https://example.org/collections/S2", (("platform", (("eq", "S2A"),),),), ("B04", "B05") )), {
1281+
"bands": ["B04", "B05"], "properties": properties}),
12811282
]
12821283

12831284

0 commit comments

Comments
 (0)