Skip to content

Commit

Permalink
Remove n_layers attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
dstansby committed Jul 16, 2024
1 parent 561cc8f commit 5aa5304
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions napari_ome_zarr/_tests/test_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ def initdir(self, tmp_path: Path):
self.path_2d.mkdir()
create_zarr(self.path_2d)

self.n_layers = 2

def test_get_reader_hit(self):
reader = napari_get_reader(self.path_3d)
assert reader is not None
Expand All @@ -36,7 +34,7 @@ def test_reader(self, path):
path_str = str(getattr(self, path))
reader = napari_get_reader(path_str)
results = reader(path_str)
assert len(results) == self.n_layers
assert len(results) == 2
image, label = results
assert isinstance(image[0], list)
assert isinstance(image[1], dict)
Expand All @@ -61,7 +59,7 @@ def test_get_reader_pass(self):
def assert_layers(self, layers, visible_1, visible_2, path="path_3d"):
# TODO: check name

assert len(layers) == self.n_layers
assert len(layers) == 2
image, label = layers

data, metadata, layer_type = self.assert_layer(image)
Expand Down

0 comments on commit 5aa5304

Please sign in to comment.