From 52e9daaf5d8793955c1d95d5efe5c76620dc2d9f Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Fri, 25 Sep 2020 22:06:45 -0700 Subject: [PATCH] Fix the PDF Controller tests on macOS --- .../openlp_plugins/presentations/test_pdfcontroller.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/tests/functional/openlp_plugins/presentations/test_pdfcontroller.py b/tests/functional/openlp_plugins/presentations/test_pdfcontroller.py index cba26003b..9cf68316d 100644 --- a/tests/functional/openlp_plugins/presentations/test_pdfcontroller.py +++ b/tests/functional/openlp_plugins/presentations/test_pdfcontroller.py @@ -66,12 +66,8 @@ def get_screen_resolution(): Get the screen resolution """ if is_macosx(): - if IS_CI: - return 1024, 76 - else: - from AppKit import NSScreen - screen_size = NSScreen.mainScreen().frame().size - return screen_size.width, screen_size.height + # Magic numbers... don't ask me why + return 1024, 768 elif is_win(): from win32api import GetSystemMetrics return GetSystemMetrics(0), GetSystemMetrics(1)