forked from openlp/openlp
Merge branch 'skip-non-mac-test-on-mac' into 'master'
Skip a non-macOS test which is failing on macOS See merge request openlp/openlp!144
This commit is contained in:
commit
4ed0d0586c
@ -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):
|
||||||
|
Loading…
Reference in New Issue
Block a user