Fix tests

This commit is contained in:
STEPHANVS 2021-07-04 18:12:19 +02:00
parent 7c363b060d
commit 843890fccf
No known key found for this signature in database
GPG Key ID: 4EFE47E471FD62A9

View File

@ -725,10 +725,11 @@ def test_to_dict_text_item(state_media, settings, service_item_env):
'notes': '', 'notes': '',
'slides': [ 'slides': [
{ {
'chords': 'Amazing Grace! how sweet the sound\n' 'chords': '<span class="nochordline">'
'Amazing Grace! how sweet the sound\n'
'That saved a wretch like me;\n' 'That saved a wretch like me;\n'
'I once was lost, but now am found,\n' 'I once was lost, but now am found,\n'
'Was blind, but now I see.', 'Was blind, but now I see.</span>',
'html': 'Amazing Grace! how sweet the sound\n' 'html': 'Amazing Grace! how sweet the sound\n'
'That saved a wretch like me;\n' 'That saved a wretch like me;\n'
'I once was lost, but now am found,\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<br>Written by: John Newton' 'footer': 'Amazing Grace<br>Written by: John Newton'
}, },
{ {
'chords': 'Twas grace that taught my heart to fear,\n' 'chords': '<span class="nochordline">'
'Twas grace that taught my heart to fear,\n'
'And grace my fears relieved;\n' 'And grace my fears relieved;\n'
'How precious did that grace appear,\n' 'How precious did that grace appear,\n'
'The hour I first believed!', 'The hour I first believed!</span>',
'html': 'Twas grace that taught my heart to fear,\n' 'html': 'Twas grace that taught my heart to fear,\n'
'And grace my fears relieved;\n' 'And grace my fears relieved;\n'
'How precious did that grace appear,\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<br>Written by: John Newton' 'footer': 'Amazing Grace<br>Written by: John Newton'
}, },
{ {
'chords': 'Through many dangers, toils and snares\n' 'chords': '<span class="nochordline">'
'Through many dangers, toils and snares\n'
'I have already come;\n' 'I have already come;\n'
'Tis grace that brought me safe thus far,\n' 'Tis grace that brought me safe thus far,\n'
'And grace will lead me home.', 'And grace will lead me home.</span>',
'html': 'Through many dangers, toils and snares\n' 'html': 'Through many dangers, toils and snares\n'
'I have already come;\n' 'I have already come;\n'
'Tis grace that brought me safe thus far,\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<br>Written by: John Newton' 'footer': 'Amazing Grace<br>Written by: John Newton'
}, },
{ {
'chords': 'The Lord has promised good to me,\n' 'chords': '<span class="nochordline">'
'The Lord has promised good to me,\n'
'His word my hope secures;\n' 'His word my hope secures;\n'
'He will my shield and portion be\n' 'He will my shield and portion be\n'
'As long as life endures.', 'As long as life endures.</span>',
'html': 'The Lord has promised good to me,\n' 'html': 'The Lord has promised good to me,\n'
'His word my hope secures;\n' 'His word my hope secures;\n'
'He will my shield and portion be\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<br>Written by: John Newton' 'footer': 'Amazing Grace<br>Written by: John Newton'
}, },
{ {
'chords': 'Yes, when this heart and flesh shall fail,\n' 'chords': '<span class="nochordline">'
'Yes, when this heart and flesh shall fail,\n'
'And mortal life shall cease,\n' 'And mortal life shall cease,\n'
'I shall possess within the veil\n' 'I shall possess within the veil\n'
'A life of joy and peace.', 'A life of joy and peace.</span>',
'html': 'Yes, when this heart and flesh shall fail,\n' 'html': 'Yes, when this heart and flesh shall fail,\n'
'And mortal life shall cease,\n' 'And mortal life shall cease,\n'
'I shall possess within the veil\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<br>Written by: John Newton' 'footer': 'Amazing Grace<br>Written by: John Newton'
}, },
{ {
'chords': 'When weve been there a thousand years,\n' 'chords': '<span class="nochordline">'
'When weve been there a thousand years,\n'
'Bright shining as the sun,\n' 'Bright shining as the sun,\n'
'Weve no less days to sing Gods praise\n' 'Weve no less days to sing Gods praise\n'
'Than when we first begun.', 'Than when we first begun.</span>',
'html': 'When weve been there a thousand years,\n' 'html': 'When weve been there a thousand years,\n'
'Bright shining as the sun,\n' 'Bright shining as the sun,\n'
'Weve no less days to sing Gods praise\n' 'Weve no less days to sing Gods praise\n'