forked from openlp/openlp
Fix Mac OS X display flags test
This commit is contained in:
parent
c07503f5dc
commit
fc2efb7343
@ -141,13 +141,12 @@ class TestMainDisplay(TestCase, TestMixin):
|
||||
mocked_songs_plugin.refresh_css.assert_called_with(main_display.frame)
|
||||
mocked_bibles_plugin.refresh_css.assert_called_with(main_display.frame)
|
||||
|
||||
@patch('openlp.core.ui.maindisplay.is_macosx')
|
||||
def macosx_display_window_flags_state_test(self, mocked_is_macosx):
|
||||
@skipUnless(is_macosx(), 'Can only run test on Mac OS X due to pyobjc dependency.')
|
||||
def macosx_display_window_flags_state_test(self):
|
||||
"""
|
||||
Test that on Mac OS X we set the proper window flags
|
||||
"""
|
||||
# GIVEN: A new SlideController instance on Mac OS X.
|
||||
mocked_is_macosx.return_value = True
|
||||
self.screens.set_current_display(0)
|
||||
display = MagicMock()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user