8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 415a237 commit 32f9b87Copy full SHA for 32f9b87
src/napari_matplotlib/tests/baseline/test_slice_2D.png
14.2 KB
src/napari_matplotlib/tests/baseline/test_slice_3D.png
7.36 KB
src/napari_matplotlib/tests/test_slice.py
@@ -6,10 +6,20 @@
6
7
8
@pytest.mark.mpl_image_compare
9
-def test_slice(make_napari_viewer, brain_data):
+def test_slice_3D(make_napari_viewer, brain_data):
10
viewer = make_napari_viewer()
11
viewer.add_image(brain_data[0], **brain_data[1])
12
fig = SliceWidget(viewer).figure
13
# Need to return a copy, as original figure is too eagerley garbage
14
# collected by the widget
15
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)
0 commit comments