Skip to content

Commit 5daf882

Browse files
fix tests cleanup (#357)
* fix tests cleanup * remove test_aaa.py
1 parent 75268eb commit 5daf882

2 files changed

Lines changed: 2 additions & 25 deletions

File tree

tests/test_aaa.py

Lines changed: 0 additions & 25 deletions
This file was deleted.

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
@@ -44,6 +45,7 @@ def test_elementwidget(make_napari_viewer: Any, blobs_extra_cs: SpatialData):
4445
assert widget._elements[name]["element_type"] == "points"
4546
for name in blobs_extra_cs.shapes:
4647
assert widget._elements[name]["element_type"] == "shapes"
48+
Viewer.close_all()
4749

4850

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

0 commit comments

Comments
 (0)