File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
src/napari_matplotlib/tests Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 66
77
88@pytest .mark .mpl_image_compare
9- def test_example_q_widget (make_napari_viewer , astronaut_data ):
9+ def test_histogram_2D (make_napari_viewer , astronaut_data ):
1010 # Smoke test adding a histogram widget
1111 viewer = make_napari_viewer ()
1212 viewer .add_image (astronaut_data [0 ], ** astronaut_data [1 ])
1313 fig = HistogramWidget (viewer ).figure
1414 # Need to return a copy, as original figure is too eagerley garbage
1515 # collected by the widget
1616 return deepcopy (fig )
17+
18+
19+ @pytest .mark .mpl_image_compare
20+ def test_histogram_3D (make_napari_viewer , brain_data ):
21+ # Smoke test adding a histogram widget
22+ viewer = make_napari_viewer ()
23+ viewer .add_image (brain_data [0 ], ** brain_data [1 ])
24+ fig = HistogramWidget (viewer ).figure
25+ # Need to return a copy, as original figure is too eagerley garbage
26+ # collected by the widget
27+ return deepcopy (fig )
You can’t perform that action at this time.
0 commit comments