Fix an unused import and some incorrect patch()s

This commit is contained in:
Raoul Snyman 2019-02-13 14:36:37 -07:00
parent 5ac8bbc3f2
commit 465ff767d6
4 changed files with 4 additions and 6 deletions

View File

@ -31,13 +31,13 @@ import time
from PyQt5 import QtWidgets, QtGui
from openlp.core.lib.formattingtags import FormattingTags
from openlp.core.common import ThemeLevel
from openlp.core.common.registry import Registry, RegistryBase
from openlp.core.common.mixins import LogMixin, RegistryProperties
from openlp.core.common.registry import Registry, RegistryBase
from openlp.core.display.screens import ScreenList
from openlp.core.display.window import DisplayWindow
from openlp.core.lib import ItemCapabilities
from openlp.core.lib.formattingtags import FormattingTags
log = logging.getLogger(__name__)

View File

@ -29,7 +29,6 @@ from PyQt5 import QtCore, QtGui, QtWidgets
from openlp.core.common.i18n import translate
from openlp.core.common.path import Path
from openlp.core.lib.formattingtags import FormattingTags
log = logging.getLogger(__name__ + '.__init__')

View File

@ -30,7 +30,6 @@ from lxml import etree, objectify
from openlp.core.common import de_hump
from openlp.core.common.applocation import AppLocation
from openlp.core.common.json import OpenLPJsonDecoder, OpenLPJsonEncoder
from openlp.core.common.path import Path
from openlp.core.display.screens import ScreenList
from openlp.core.lib import get_text_file_string, str_to_bool

View File

@ -29,7 +29,7 @@ from openlp.core.display.render import compare_chord_lyric_width, find_formattin
from openlp.core.lib.formattingtags import FormattingTags
@patch('openlp.core.lib.FormattingTags.get_html_tags')
@patch('openlp.core.display.render.FormattingTags.get_html_tags')
def test_remove_tags(mocked_get_tags):
"""
Test remove_tags() method.
@ -52,7 +52,7 @@ def test_remove_tags(mocked_get_tags):
assert result_string == expected_string, 'The strings should be identical'
@patch('openlp.core.lib.FormattingTags.get_html_tags')
@patch('openlp.core.display.render.FormattingTags.get_html_tags')
def test_render_tags(mocked_get_tags):
"""
Test the render_tags() method.