Ejemplo n.º 1
0
 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']
Ejemplo n.º 2
0
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']
Ejemplo n.º 3
0
 def test_get_reader_pass(self):
     reader = napari_get_reader('fake.file')
     assert reader is None
Ejemplo n.º 4
0
 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)
Ejemplo n.º 5
0
 def test_get_reader_hit(self):
     reader = napari_get_reader(self.path)
     assert reader is not None
     assert callable(reader)