~tomasgroth/openlp/refix-win-display

« back to all changes in this revision

Viewing changes to tests/functional/openlp_plugins/songs/test_openoffice.py

  • Committer: Tomas Groth
  • Author(s): springermac at gmail
  • Date: 2016-01-11 20:27:11 UTC
  • mfrom: (2602.1.4 fix-tests)
  • Revision ID: tomasgroth@yahoo.dk-20160111202711-8v63i35sts0rqwjn
Fix Mac OS X display flags test
Fix import in pjlink tests
Skip OpenOffice test if uno isn't available, e.g., on Mac OS X

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
"""
23
23
This module contains tests for the OpenOffice/LibreOffice importer.
24
24
"""
25
 
from unittest import TestCase
 
25
from unittest import TestCase, SkipTest
26
26
 
27
27
from openlp.core.common import Registry
28
 
from openlp.plugins.songs.lib.importers.openoffice import OpenOfficeImport
 
28
try:
 
29
    from openlp.plugins.songs.lib.importers.openoffice import OpenOfficeImport
 
30
except ImportError:
 
31
    raise SkipTest('Could not import OpenOfficeImport probably due to unavailability of uno')
29
32
 
30
33
from tests.functional import MagicMock, patch
31
34
from tests.helpers.testmixin import TestMixin