Skip to content

Commit

Permalink
misplaced skip
Browse files Browse the repository at this point in the history
  • Loading branch information
shrivaths16 committed Jan 11, 2024
1 parent ea2111d commit 7ff49f0
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 13 deletions.
11 changes: 6 additions & 5 deletions tests/gui/test_app.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import pytest
import sys
from qtpy.QtWidgets import QApplication

from sleap.gui.app import MainWindow
from sleap.gui.commands import *
from sleap.gui.dialogs.bulletin import BulletinWorker

# Skip the test for MacOS due to QWebEngineView ImportError
# TODO: Need to resolve the ImportError
if sys.platform == "darwin":
pytestmark = pytest.mark.skip(reason="ImportError for MacOS")
pytest.skip(reason="Skipping tests and import on macOS", allow_module_level=True)

from qtpy.QtWidgets import QApplication

from sleap.gui.app import MainWindow
from sleap.gui.commands import *
from sleap.gui.dialogs.bulletin import BulletinWorker


def test_app_workflow(
qtbot, centered_pair_vid, small_robot_mp4_vid, min_tracks_2node_labels: Labels
Expand Down
5 changes: 3 additions & 2 deletions tests/gui/test_grid_system.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
import numpy as np
import pytest
import sys
from sleap.gui.app import MainWindow
from sleap.gui.commands import *

# Skip the test for MacOS due to QWebEngineView ImportError
# TODO: Need to resolve the ImportError
if sys.platform == "darwin":
pytestmark = pytest.mark.skip(reason="ImportError for MacOS")
pytest.skip(reason="Skipping tests and import on macOS", allow_module_level=True)

from sleap.gui.app import MainWindow
from sleap.gui.commands import *


def test_grid_system_midpoint_gui(qtbot, midpoint_grid_labels):
app = MainWindow(no_usage_data=True)
Expand Down
13 changes: 7 additions & 6 deletions tests/gui/widgets/test_docks.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
from pathlib import Path
import pytest
import sys

# Skip the test for MacOS due to QWebEngineView ImportError
# TODO: Need to resolve the ImportError
if sys.platform == "darwin":
pytestmark = pytest.mark.skip(reason="ImportError for MacOS")
pytest.skip(reason="Skipping tests and import on macOS", allow_module_level=True)

from sleap import Labels, Video
from sleap.gui.app import MainWindow
from sleap.gui.commands import OpenSkeleton
Expand All @@ -13,12 +20,6 @@
SkeletonDock,
)

# Skip the test for MacOS due to QWebEngineView ImportError
# TODO: Need to resolve the ImportError
if sys.platform == "darwin":
pytestmark = pytest.mark.skip(reason="ImportError for MacOS")
pytest.skip(reason="Skipping tests and import on macOS", allow_module_level=True)


def test_videos_dock(
qtbot,
Expand Down

0 comments on commit 7ff49f0

Please sign in to comment.