Skip a non-macOS test which is failing on macOS

This commit is contained in:
Raoul Snyman 2020-02-23 23:15:56 -07:00
parent 2a8fc22886
commit 71874302d0
Signed by: raoul
GPG Key ID: F55BCED79626AE9C

View File

@ -25,8 +25,10 @@ import os
import sys import sys
import pytest import pytest
from datetime import timedelta from datetime import timedelta
from unittest import skipIf
from unittest.mock import MagicMock, call, patch from unittest.mock import MagicMock, call, patch
from openlp.core.common import is_macosx
from openlp.core.common.registry import Registry from openlp.core.common.registry import Registry
from openlp.core.ui.media import ItemMediaInfo, MediaState, MediaType from openlp.core.ui.media import ItemMediaInfo, MediaState, MediaType
from openlp.core.ui.media.vlcplayer import VlcPlayer, get_vlc from openlp.core.ui.media.vlcplayer import VlcPlayer, get_vlc
@ -44,6 +46,7 @@ def vlc_env():
MockDateTime.revert() MockDateTime.revert()
@skipIf(is_macosx(), 'Test doesn\'t apply to macOS')
@patch.dict(os.environ) @patch.dict(os.environ)
@patch('openlp.core.ui.media.vlcplayer.is_macosx') @patch('openlp.core.ui.media.vlcplayer.is_macosx')
def test_not_osx_fix_vlc_22_plugin_path(mocked_is_macosx): def test_not_osx_fix_vlc_22_plugin_path(mocked_is_macosx):