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