Skip to content

Commit 94ce041

Browse files
committed
rm test
1 parent 6d711f1 commit 94ce041

File tree

1 file changed

+0
-41
lines changed

1 file changed

+0
-41
lines changed

webknossos/tests/dataset/test_attachments.py

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -190,47 +190,6 @@ def test_copy_layer(tmp_upath: UPath) -> None:
190190
)
191191

192192

193-
def test_fs_copy_layer(tmp_upath: UPath) -> None:
194-
dataset, seg_layer = make_dataset(tmp_upath)
195-
196-
mesh_path = dataset.path / "seg" / "meshes" / "meshfile.hdf5"
197-
mesh_path.parent.mkdir(parents=True, exist_ok=True)
198-
mesh_path.write_text("test")
199-
200-
agglomerate_path = (tmp_upath / "agglomerate_view_15").resolve()
201-
agglomerate_path.mkdir(parents=True, exist_ok=True)
202-
(agglomerate_path / "zarr.json").write_text("test")
203-
204-
seg_layer.attachments.add_mesh(
205-
mesh_path,
206-
name="meshfile",
207-
data_format=AttachmentDataFormat.HDF5,
208-
)
209-
210-
seg_layer.attachments.add_agglomerate(
211-
Path("../agglomerate_view_15"),
212-
name="agglomerate_view_15",
213-
data_format=AttachmentDataFormat.Zarr3,
214-
)
215-
216-
copy_dataset = Dataset(tmp_upath / "test_copy", voxel_size=(10, 10, 10))
217-
copy_layer = copy_dataset.add_layer_as_copy(seg_layer).as_segmentation_layer()
218-
219-
# has been copied
220-
assert (
221-
copy_layer.attachments.meshes[0].path
222-
== copy_dataset.path / "seg" / "meshes" / "meshfile.hdf5"
223-
)
224-
assert (copy_dataset.path / "seg" / "meshes" / "meshfile.hdf5").exists()
225-
226-
# has not been copied
227-
assert copy_layer.attachments.agglomerates[0].path == agglomerate_path
228-
assert (
229-
copy_layer.attachments.agglomerates[0]._properties.path
230-
== agglomerate_path.as_posix()
231-
)
232-
233-
234193
def test_symlink_layer(tmp_upath: UPath) -> None:
235194
dataset, seg_layer = make_dataset(tmp_upath)
236195

0 commit comments

Comments
 (0)