Skip to content

Commit 959af7d

Browse files
Disable GUI tests on Linux (#849)
1 parent bba4d82 commit 959af7d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

test/test_sam_annotator/test_annotator_2d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
@pytest.mark.gui
12-
@pytest.mark.skipif(platform.system() == "Windows", reason="Gui test is not working on windows.")
12+
@pytest.mark.skipif(platform.system() in ("Windows", "Linux"), reason="Gui test is not working on windows.")
1313
def test_annotator_2d(make_napari_viewer_proxy):
1414
"""Integration test for annotator_2d.
1515
"""

test/test_sam_annotator/test_annotator_3d.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
@pytest.mark.gui
13-
@pytest.mark.skipif(platform.system() == "Windows", reason="Gui test is not working on windows.")
13+
@pytest.mark.skipif(platform.system() in ("Windows", "Linux"), reason="Gui test is not working on windows.")
1414
def test_annotator_3d(make_napari_viewer_proxy):
1515
"""Integration test for annotator_3d.
1616
"""

test/test_sam_annotator/test_annotator_tracking.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
@pytest.mark.gui
13-
@pytest.mark.skipif(platform.system() == "Windows", reason="Gui test is not working on windows.")
13+
@pytest.mark.skipif(platform.system() in ("Windows", "Linux"), reason="Gui test is not working on windows.")
1414
def test_annotator_tracking(make_napari_viewer_proxy):
1515
"""Integration test for annotator_tracking.
1616
"""

test/test_sam_annotator/test_image_series_annotator.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def _create_images(tmpdir, n_images):
2222

2323

2424
@pytest.mark.gui
25-
@pytest.mark.skipif(platform.system() == "Windows", reason="Gui test is not working on windows.")
25+
@pytest.mark.skipif(platform.system() in ("Windows", "Linux"), reason="Gui test is not working on windows.")
2626
def test_image_series_annotator(make_napari_viewer_proxy):
2727
"""Integration test for annotator_tracking.
2828
"""
@@ -47,7 +47,7 @@ def test_image_series_annotator(make_napari_viewer_proxy):
4747

4848

4949
@pytest.mark.gui
50-
@pytest.mark.skipif(platform.system() == "Windows", reason="Gui test is not working on windows.")
50+
@pytest.mark.skipif(platform.system() in ("Windows", "Linux"), reason="Gui test is not working on windows.")
5151
def test_image_folder_annotator(make_napari_viewer_proxy):
5252
"""Integration test for annotator_tracking.
5353
"""

test/test_sam_annotator/test_widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# you don't need to import it, as long as napari is installed
2323
# in your testing environment.
2424
# tmp_path is a regular pytest fixture.
25-
@pytest.mark.skipif(platform.system() == "Windows", reason="Gui test is not working on windows.")
25+
@pytest.mark.skipif(platform.system() in ("Windows", "Linux"), reason="Gui test is not working on windows.")
2626
def test_embedding_widget(make_napari_viewer, tmp_path):
2727
"""Test embedding widget for micro-sam napari plugin."""
2828
# Setup

0 commit comments

Comments
 (0)