From e584c5bf499c459241f21f67e19c9c32f985aac7 Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Thu, 2 Sep 2021 20:43:42 +0000 Subject: [PATCH] Skip test that fails on macOS. --- tests/openlp_core/ui/test_mainwindow.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/openlp_core/ui/test_mainwindow.py b/tests/openlp_core/ui/test_mainwindow.py index 1cfd6bfa3..a57d0d185 100644 --- a/tests/openlp_core/ui/test_mainwindow.py +++ b/tests/openlp_core/ui/test_mainwindow.py @@ -30,6 +30,7 @@ from tempfile import mkdtemp from PyQt5 import QtCore, QtWidgets, QtGui +from openlp.core.common import is_macosx from openlp.core.common.i18n import UiStrings from openlp.core.common.registry import Registry from openlp.core.display.screens import ScreenList @@ -206,6 +207,7 @@ def test_load_settings_position_valid(main_window, settings): assert main_window.pos().x() == 10 +@pytest.mark.skipif(is_macosx(), reason='Test does not work on macOS') def test_load_settings_position_invalid(main_window, settings): """ Test that the position of the main window is not restored when it's invalid, but rather set to (0, 0)