Skip to content

Commit

Permalink
Update tests to fix napari 0.4.19 errors (#91)
Browse files Browse the repository at this point in the history
Setting the colormap to 'green' wasn't expected to work for all layer
types,
and is unnecessary in testing anyway.
  • Loading branch information
jni authored Feb 15, 2024
1 parent 0fd9797 commit 6cb4d95
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/affinder/_tests/test_affinder.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,9 @@ def test_layer_types(make_napari_viewer, tmp_path, reference, moving):
viewer = make_napari_viewer()

l0 = viewer.add_layer(reference)
viewer.layers[-1].name = "layer0"
viewer.layers[-1].colormap = "green"

l0.name = 'layer0'
l1 = viewer.add_layer(moving)
viewer.layers[-1].name = "layer1"
viewer.layers[-1].colormap = "magenta"
l1.name = 'layer1'

my_widget_factory = start_affinder()
my_widget_factory(
Expand Down

0 comments on commit 6cb4d95

Please sign in to comment.