forked from openlp/openlp
Skip MediaShout import testing on non-win platforms.
This commit is contained in:
parent
4754d1eb8b
commit
32cfacff7e
@ -22,15 +22,20 @@
|
|||||||
"""
|
"""
|
||||||
Test the MediaShout importer
|
Test the MediaShout importer
|
||||||
"""
|
"""
|
||||||
from unittest import TestCase
|
from unittest import TestCase, skipUnless
|
||||||
from collections import namedtuple
|
from collections import namedtuple
|
||||||
|
|
||||||
from openlp.core.common import Registry
|
from openlp.core.common import Registry
|
||||||
from openlp.plugins.songs.lib.importers.mediashout import MediaShoutImport
|
try:
|
||||||
|
from openlp.plugins.songs.lib.importers.mediashout import MediaShoutImport
|
||||||
|
CAN_RUN_TESTS = True
|
||||||
|
except ImportError:
|
||||||
|
CAN_RUN_TESTS = False
|
||||||
|
|
||||||
from tests.functional import MagicMock, patch, call
|
from tests.functional import MagicMock, patch, call
|
||||||
|
|
||||||
|
|
||||||
|
@skipUnless(CAN_RUN_TESTS, 'Not Windows, skipping test')
|
||||||
class TestMediaShoutImport(TestCase):
|
class TestMediaShoutImport(TestCase):
|
||||||
"""
|
"""
|
||||||
Test the MediaShout importer
|
Test the MediaShout importer
|
||||||
|
Loading…
Reference in New Issue
Block a user