From 263a7b2c62b2e0397178b4576be4aeeb08625c73 Mon Sep 17 00:00:00 2001 From: Jonathan Springer Date: Sun, 10 Jan 2016 17:10:05 -0500 Subject: [PATCH] Fix macosx_display_windows_flags_state test --- tests/functional/openlp_core_ui/test_maindisplay.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tests/functional/openlp_core_ui/test_maindisplay.py b/tests/functional/openlp_core_ui/test_maindisplay.py index 1f4649dbc..563eb578d 100644 --- a/tests/functional/openlp_core_ui/test_maindisplay.py +++ b/tests/functional/openlp_core_ui/test_maindisplay.py @@ -141,14 +141,13 @@ 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) - @skipUnless(is_macosx(), 'Can only run test on Mac OS X due to pyobjc dependency.') - def macosx_display_window_flags_state_test(self, is_macosx): + @patch('openlp.core.ui.maindisplay.is_macosx') + def macosx_display_window_flags_state_test(self, mocked_is_macosx): """ Test that on Mac OS X we set the proper window flags """ - if not is_macosx(): - self.skipTest('Can only run test on Mac OS X due to pyobjc dependency.') # GIVEN: A new SlideController instance on Mac OS X. + mocked_is_macosx.return_value = True self.screens.set_current_display(0) display = MagicMock()