From 843890fccf5bee054659a3df4f1e8b5530e8d9e7 Mon Sep 17 00:00:00 2001 From: STEPHANVS Date: Sun, 4 Jul 2021 18:12:19 +0200 Subject: [PATCH] Fix tests --- tests/openlp_core/lib/test_serviceitem.py | 30 ++++++++++++++--------- 1 file changed, 18 insertions(+), 12 deletions(-) diff --git a/tests/openlp_core/lib/test_serviceitem.py b/tests/openlp_core/lib/test_serviceitem.py index 7b2de8aaf..15ef57dce 100644 --- a/tests/openlp_core/lib/test_serviceitem.py +++ b/tests/openlp_core/lib/test_serviceitem.py @@ -725,10 +725,11 @@ def test_to_dict_text_item(state_media, settings, service_item_env): 'notes': '', 'slides': [ { - 'chords': 'Amazing Grace! how sweet the sound\n' + 'chords': '' + 'Amazing Grace! how sweet the sound\n' 'That saved a wretch like me;\n' 'I once was lost, but now am found,\n' - 'Was blind, but now I see.', + 'Was blind, but now I see.', 'html': 'Amazing Grace! how sweet the sound\n' 'That saved a wretch like me;\n' 'I once was lost, but now am found,\n' @@ -743,10 +744,11 @@ def test_to_dict_text_item(state_media, settings, service_item_env): 'footer': 'Amazing Grace
Written by: John Newton' }, { - 'chords': '’Twas grace that taught my heart to fear,\n' + 'chords': '' + '’Twas grace that taught my heart to fear,\n' 'And grace my fears relieved;\n' 'How precious did that grace appear,\n' - 'The hour I first believed!', + 'The hour I first believed!', 'html': '’Twas grace that taught my heart to fear,\n' 'And grace my fears relieved;\n' 'How precious did that grace appear,\n' @@ -761,10 +763,11 @@ def test_to_dict_text_item(state_media, settings, service_item_env): 'footer': 'Amazing Grace
Written by: John Newton' }, { - 'chords': 'Through many dangers, toils and snares\n' + 'chords': '' + 'Through many dangers, toils and snares\n' 'I have already come;\n' '’Tis grace that brought me safe thus far,\n' - 'And grace will lead me home.', + 'And grace will lead me home.', 'html': 'Through many dangers, toils and snares\n' 'I have already come;\n' '’Tis grace that brought me safe thus far,\n' @@ -779,10 +782,11 @@ def test_to_dict_text_item(state_media, settings, service_item_env): 'footer': 'Amazing Grace
Written by: John Newton' }, { - 'chords': 'The Lord has promised good to me,\n' + 'chords': '' + 'The Lord has promised good to me,\n' 'His word my hope secures;\n' 'He will my shield and portion be\n' - 'As long as life endures.', + 'As long as life endures.', 'html': 'The Lord has promised good to me,\n' 'His word my hope secures;\n' 'He will my shield and portion be\n' @@ -797,10 +801,11 @@ def test_to_dict_text_item(state_media, settings, service_item_env): 'footer': 'Amazing Grace
Written by: John Newton' }, { - 'chords': 'Yes, when this heart and flesh shall fail,\n' + 'chords': '' + 'Yes, when this heart and flesh shall fail,\n' 'And mortal life shall cease,\n' 'I shall possess within the veil\n' - 'A life of joy and peace.', + 'A life of joy and peace.', 'html': 'Yes, when this heart and flesh shall fail,\n' 'And mortal life shall cease,\n' 'I shall possess within the veil\n' @@ -815,10 +820,11 @@ def test_to_dict_text_item(state_media, settings, service_item_env): 'footer': 'Amazing Grace
Written by: John Newton' }, { - 'chords': 'When we’ve been there a thousand years,\n' + 'chords': '' + 'When we’ve been there a thousand years,\n' 'Bright shining as the sun,\n' 'We’ve no less days to sing God’s praise\n' - 'Than when we first begun.', + 'Than when we first begun.', 'html': 'When we’ve been there a thousand years,\n' 'Bright shining as the sun,\n' 'We’ve no less days to sing God’s praise\n'