def test_reader(self): reader = napari_get_reader(self.path) results = reader(self.path) assert results is not None and len(results) == 1 result = results[0] assert isinstance(result[0], list) assert isinstance(result[1], dict) assert result[1]['channel_axis'] == 1 assert result[1]['name'] == ['Red', 'Green', 'Blue']
def test_reader(): reader = napari_get_reader(path) results = reader(path) assert results is not None and len(results) == 1 result = results[0] assert isinstance(result[0], list) assert isinstance(result[1], dict) assert result[1]['channel_axis'] == 1 assert result[1]['name'] == ['LaminB1', 'Dapi']
def test_get_reader_pass(self): reader = napari_get_reader('fake.file') assert reader is None
def test_get_reader_with_list(self): # a better test here would use real data reader = napari_get_reader([self.path]) assert reader is not None assert callable(reader)
def test_get_reader_hit(self): reader = napari_get_reader(self.path) assert reader is not None assert callable(reader)