forked from openlp/openlp
and one renderer test
This commit is contained in:
parent
34f8f11efd
commit
a3d95acabd
@ -182,13 +182,15 @@ class TestRenderer(TestCase):
|
||||
@patch('openlp.core.lib.renderer.QtWebKitWidgets.QWebView')
|
||||
@patch('openlp.core.lib.renderer.build_lyrics_format_css')
|
||||
@patch('openlp.core.lib.renderer.build_lyrics_outline_css')
|
||||
def test_set_text_rectangle(self, mock_outline_css, mock_lyrics_css, mock_webview):
|
||||
@patch('openlp.core.lib.renderer.build_chords_css')
|
||||
def test_set_text_rectangle(self, mock_build_chords_css, mock_outline_css, mock_lyrics_css, mock_webview):
|
||||
"""
|
||||
Test set_text_rectangle returns a proper html string
|
||||
"""
|
||||
# GIVEN: test object and data
|
||||
mock_lyrics_css.return_value = ' FORMAT CSS; '
|
||||
mock_outline_css.return_value = ' OUTLINE CSS; '
|
||||
mock_build_chords_css.return_value = ' CHORDS CSS; '
|
||||
theme_data = Theme()
|
||||
theme_data.font_main_name = 'Arial'
|
||||
theme_data.font_main_size = 20
|
||||
|
Loading…
Reference in New Issue
Block a user