Skip to content

Commit 54b1314

Browse files
committed
fix tests cleanup
1 parent fbab256 commit 54b1314

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_spatialdata.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from multiscale_spatial_image import to_multiscale
1212
from napari.layers import Image, Labels, Points
1313
from napari.utils.events import EventedList
14+
from napari.viewer import Viewer
1415
from numpy import int64
1516
from spatialdata import SpatialData, deepcopy
1617
from spatialdata._core.query.relational_query import get_element_instances
@@ -43,6 +44,7 @@ def test_elementwidget(make_napari_viewer: Any, blobs_extra_cs: SpatialData):
4344
assert widget._elements[name]["element_type"] == "points"
4445
for name in blobs_extra_cs.shapes:
4546
assert widget._elements[name]["element_type"] == "shapes"
47+
Viewer.close_all()
4648

4749

4850
def test_coordinatewidget(make_napari_viewer: Any, blobs_extra_cs: SpatialData):

0 commit comments

Comments
 (0)