forked from openlp/openlp
Skip the test if not on Linux
This commit is contained in:
parent
e65d6b0d3b
commit
8fa9bdcf58
@ -25,12 +25,14 @@ This module contains tests for the OpenOffice/LibreOffice importer.
|
|||||||
from unittest import TestCase, SkipTest
|
from unittest import TestCase, SkipTest
|
||||||
from unittest.mock import MagicMock, patch
|
from unittest.mock import MagicMock, patch
|
||||||
|
|
||||||
from openlp.core.common.registry import Registry
|
from openlp.core.common import is_linux
|
||||||
try:
|
|
||||||
from openlp.plugins.songs.lib.importers.openoffice import OpenOfficeImport
|
if not is_linux:
|
||||||
except ImportError:
|
|
||||||
raise SkipTest('Could not import OpenOfficeImport probably due to unavailability of uno')
|
raise SkipTest('Could not import OpenOfficeImport probably due to unavailability of uno')
|
||||||
|
|
||||||
|
from openlp.core.common.registry import Registry
|
||||||
|
from openlp.plugins.songs.lib.importers.openoffice import OpenOfficeImport
|
||||||
|
|
||||||
from tests.helpers.testmixin import TestMixin
|
from tests.helpers.testmixin import TestMixin
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user