Skip to content

Commit 74646ca

Browse files
fix bug introduced by ngio=0.2.7 - now ngio does not create an empty group during init task
1 parent cf903bd commit 74646ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/tasks_v2/test_unit_copy_ome_hcs_plate.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def test_copy_hcs_plate(create_plate: Callable, tmp_path: Path):
4040

4141
image = parallel_list["parallelization_list"][0]
4242
debug(image)
43-
assert Path(image["zarr_url"]).exists()
43+
assert Path(image["zarr_url"]).parent.exists()
4444

4545
origin_url = image["init_args"]["origin_url"]
4646
assert origin_url in sample_plate_zarr_urls
@@ -166,7 +166,7 @@ def test_reinit_true(tmp_path: Path):
166166
)
167167

168168
zarr_url = parallel_list_1["parallelization_list"][0]["zarr_url"]
169-
assert Path(zarr_url).exists()
169+
assert Path(zarr_url).parent.exists()
170170

171171
# Subset 2 will reinitialize the plate
172172
# and overwrite the images
@@ -178,7 +178,7 @@ def test_reinit_true(tmp_path: Path):
178178
)
179179

180180
zarr_url = parallel_list_2["parallelization_list"][0]["zarr_url"]
181-
assert Path(zarr_url).exists()
181+
assert Path(zarr_url).parent.exists()
182182

183183
zarr_url = parallel_list_1["parallelization_list"][0]["zarr_url"]
184-
assert not Path(zarr_url).exists(), zarr_url
184+
assert not Path(zarr_url).parent.exists(), zarr_url

0 commit comments

Comments
 (0)