Skip MediaShout import testing on non-win platforms.

This commit is contained in:
Tomas Groth 2016-09-18 17:47:59 +02:00
parent 4754d1eb8b
commit 32cfacff7e

View File

@ -22,15 +22,20 @@
"""
Test the MediaShout importer
"""
from unittest import TestCase
from unittest import TestCase, skipUnless
from collections import namedtuple
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
@skipUnless(CAN_RUN_TESTS, 'Not Windows, skipping test')
class TestMediaShoutImport(TestCase):
"""
Test the MediaShout importer