diff --git a/tests/functional/openlp_plugins/songs/test_openoffice.py b/tests/functional/openlp_plugins/songs/test_openoffice.py index 231193951..acb56939f 100644 --- a/tests/functional/openlp_plugins/songs/test_openoffice.py +++ b/tests/functional/openlp_plugins/songs/test_openoffice.py @@ -22,10 +22,13 @@ """ This module contains tests for the OpenOffice/LibreOffice importer. """ -from unittest import TestCase +from unittest import TestCase, SkipTest from openlp.core.common import Registry -from openlp.plugins.songs.lib.importers.openoffice import OpenOfficeImport +try: + from openlp.plugins.songs.lib.importers.openoffice import OpenOfficeImport +except ImportError: + raise SkipTest('Could not import OpenOfficeImport probably due to unavailability of uno') from tests.functional import MagicMock, patch from tests.helpers.testmixin import TestMixin