forked from openlp/openlp
Fix an unused import and some incorrect patch()s
This commit is contained in:
parent
5ac8bbc3f2
commit
465ff767d6
@ -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__)
|
||||
|
@ -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__')
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user