Skip OpenOffice test if uno isn't available

This commit is contained in:
Jonathan Springer 2016-01-10 17:09:18 -05:00
parent 0e8dc032da
commit a9df7771f6

View File

@ -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