Skip to content

Commit d417aaa

Browse files
committedApr 25, 2022
Add test for do_override_product_files
1 parent 85a08c0 commit d417aaa

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed
 

‎tests/test_20_sentinel1.py

+9
Original file line numberDiff line numberDiff line change
@@ -354,3 +354,12 @@ def test_slant_range_time_to_ground_range() -> None:
354354
)
355355

356356
assert isinstance(res, xr.DataArray)
357+
358+
359+
def test_do_override_product_files() -> None:
360+
template = "{dirname}/{prefix}{swath}-{polarization}{ext}"
361+
_, product_files = esa_safe.parse_manifest_sentinel1(SLC_S3 / "manifest.safe")
362+
363+
res = sentinel1.do_override_product_files(template, product_files)
364+
365+
assert "./annotation/s3-vv.xml" in res

0 commit comments

Comments
 (0)
Please sign in to comment.