Skip to content

Commit

Permalink
Use string filenames in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Jun 6, 2024
1 parent 0f21245 commit edce9f8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions napari_ome_zarr/_tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,14 @@ def initdir(self, tmp_path: Path):
"""
self.path_3d = tmp_path / "data_3d"
self.path_3d.mkdir()
create_zarr(self.path_3d, method=astronaut, label_name="astronaut")
create_zarr(str(self.path_3d), method=astronaut, label_name="astronaut")

self.path_2d = tmp_path / "data_2d"
self.path_2d.mkdir()
create_zarr(self.path_2d)
create_zarr(str(self.path_2d))

def test_get_reader_hit(self):
reader = napari_get_reader(self.path_3d)
reader = napari_get_reader(str(self.path_3d))
assert reader is not None
assert callable(reader)

Expand Down Expand Up @@ -90,12 +90,12 @@ def test_image(self, path):
self.assert_layers(layers, True, False, path)

def test_labels(self):
filename = self.path_3d / "labels"
filename = str(self.path_3d / "labels")
layers = napari_get_reader(filename)()
self.assert_layers(layers, False, True)

def test_label(self):
filename = self.path_3d / "labels" / "astronaut"
filename = str(self.path_3d / "labels" / "astronaut")
layers = napari_get_reader(filename)()
self.assert_layers(layers, False, True)

Expand Down

0 comments on commit edce9f8

Please sign in to comment.