File tree 1 file changed +12
-1
lines changed
src/napari_matplotlib/tests
1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 6
6
7
7
8
8
@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 ):
10
10
# Smoke test adding a histogram widget
11
11
viewer = make_napari_viewer ()
12
12
viewer .add_image (astronaut_data [0 ], ** astronaut_data [1 ])
13
13
fig = HistogramWidget (viewer ).figure
14
14
# Need to return a copy, as original figure is too eagerley garbage
15
15
# collected by the widget
16
16
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