Skip to content
Snippets Groups Projects
Commit 23845245 authored by Vincent Delbar's avatar Vincent Delbar
Browse files

TERST: add test for output Path object param

parent 1dc6f9c6
No related branches found
No related tags found
2 merge requests!108Release 2.0.0,!100Last fixes for multiprocessing usage
Pipeline #13840 failed
...@@ -141,6 +141,8 @@ def test_xy_to_rowcol(): ...@@ -141,6 +141,8 @@ def test_xy_to_rowcol():
def test_write(): def test_write():
assert INPUT.write("/dev/shm/test_write.tif", ext_fname="nodata=0") assert INPUT.write("/dev/shm/test_write.tif", ext_fname="nodata=0")
INPUT["out"].filepath.unlink() INPUT["out"].filepath.unlink()
assert INPUT.write(Path("/dev/shm/test_write.tif"), ext_fname="nodata=0")
INPUT["out"].filepath.unlink()
# Frozen # Frozen
frozen_app = pyotb.BandMath(INPUT, exp="im1b1", frozen=True) frozen_app = pyotb.BandMath(INPUT, exp="im1b1", frozen=True)
assert frozen_app.write("/dev/shm/test_frozen_app_write.tif") assert frozen_app.write("/dev/shm/test_frozen_app_write.tif")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment