diff --git a/openlp/plugins/presentations/lib/messagelistener.py b/openlp/plugins/presentations/lib/messagelistener.py index ab20b4996..faff8ecbf 100644 --- a/openlp/plugins/presentations/lib/messagelistener.py +++ b/openlp/plugins/presentations/lib/messagelistener.py @@ -333,7 +333,8 @@ class MessageListener(object): # the conversion has already been done at this point. file_type = file_path.suffix.lower()[1:] if file_type in PDF_CONTROLLER_FILETYPES: - log.debug('Converting from pdf/xps/oxps/epub/cbz/fb2 to images for serviceitem with file {name}'.format(name=file_path)) + log.debug('Converting from pdf/xps/oxps/epub/cbz/fb2 to images for serviceitem with file {name}' + .format(name=file_path)) # Create a copy of the original item, and then clear the original item so it can be filled with images item_cpy = copy.copy(item) item.__init__(None) diff --git a/tests/functional/openlp_plugins/presentations/test_pdfcontroller.py b/tests/functional/openlp_plugins/presentations/test_pdfcontroller.py index ff2413b9d..e0c4f3047 100644 --- a/tests/functional/openlp_plugins/presentations/test_pdfcontroller.py +++ b/tests/functional/openlp_plugins/presentations/test_pdfcontroller.py @@ -25,7 +25,7 @@ This module contains tests for the PdfController import os from shutil import which from tempfile import mkdtemp -from unittest import SkipTest, TestCase +from unittest import TestCase from unittest.mock import MagicMock, patch from PyQt5 import QtCore, QtGui