Skip to content

Commit 6009919

Browse files
committed
add pytest decorator to test_histogram
1 parent 8935f90 commit 6009919

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
import pytest
2+
13
from napari_matplotlib import HistogramWidget
24

35

6+
@pytest.mark.mpl_image_compare
47
def test_example_q_widget(make_napari_viewer, image_data):
58
# Smoke test adding a histogram widget
69
viewer = make_napari_viewer()
710
viewer.add_image(image_data[0], **image_data[1])
8-
HistogramWidget(viewer)
11+
fig = HistogramWidget(viewer).figure
12+
return fig

0 commit comments

Comments
 (0)