Fix the PDF Controller tests on macOS

This commit is contained in:
Raoul Snyman 2020-09-25 22:06:45 -07:00
parent 844399b54f
commit 52e9daaf5d
No known key found for this signature in database
GPG Key ID: 7347E1FA47B16091

View File

@ -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)