From 7389b43202823fde26773cd7642fe45a16fbf1bc Mon Sep 17 00:00:00 2001 From: Robert Haase Date: Sat, 7 May 2022 11:53:10 +0200 Subject: [PATCH] fix tests --- napari_skimage_regionprops/_tests/test_function.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/napari_skimage_regionprops/_tests/test_function.py b/napari_skimage_regionprops/_tests/test_function.py index d605828..94db7ef 100644 --- a/napari_skimage_regionprops/_tests/test_function.py +++ b/napari_skimage_regionprops/_tests/test_function.py @@ -55,8 +55,8 @@ def test_regionprops(make_napari_viewer): # generate a parametric image from napari_skimage_regionprops import visualize_measurement_on_labels - layer = visualize_measurement_on_labels(labels_layer, "area", viewer) - assert layer is not None + result = visualize_measurement_on_labels(labels_layer, "area", viewer) + assert result is not None reference = np.asarray([ [0, 0, 0, 0, 0, 0, 0], @@ -67,9 +67,9 @@ def test_regionprops(make_napari_viewer): [0, 0, 6, 6, 6, 0, 0], [0, 0, 6, 6, 6, 0, 1], ]) - print("layer.data: ", layer.data) + print("result: ", result) print("reference: ", np.asarray(reference)) - assert np.array_equal(layer.data, reference) + assert np.array_equal(result, reference) # replace table from napari_skimage_regionprops import add_table