forked from openlp/openlp
add new openlyrics file
This commit is contained in:
parent
655ebc009d
commit
9010e05430
@ -40,8 +40,20 @@ from openlp.plugins.songs.lib.songimport import SongImport
|
||||
TEST_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__),
|
||||
'..', '..', '..', 'resources', 'openlyricssongs'))
|
||||
SONG_TEST_DATA = {
|
||||
'Mám zde přítele, Pána Ježíše.xml': {
|
||||
'title': 'Mám zde přítele',
|
||||
#'Mám zde přítele, Pána Ježíše.xml': {
|
||||
# 'title': 'Mám zde přítele',
|
||||
# 'verses': [
|
||||
# ('Mám zde přítele,\nPána Ježíše,\na na rámě jeho spoléhám;\nv něm své stěstí mám,\n\
|
||||
# pokoj nalézám,\nkdyž na rámě jeho spoléhám!', 'v1'),
|
||||
# ('Boží rámě\nje v soužení náš pevný hrad;\nBoží rámě,\nuč se na ně vždycky spoléhat!', 'c'),
|
||||
# ('Jak je sladké být,\nv jeho družině,\nkdyž na rámě jeho spoléhám,\njak se života\ncesta zjasňuje\n\
|
||||
# když na rámě Boží spoléhám!', 'v2'),
|
||||
# ('Čeho bych se bál,\nčeho strachoval,\nkdyž na rámě Boží spoléhám?\nMír je v duši mé,\n\
|
||||
# když On blízko je,\nkdyž na rámě jeho spoléhám.', 'v')
|
||||
# ]
|
||||
#},
|
||||
'What a friend we have in Jesus.xml': {
|
||||
'title': 'What A Friend We Have In Jesus',
|
||||
'verses': [
|
||||
('Mám zde přítele,\nPána Ježíše,\na na rámě jeho spoléhám;\nv něm své stěstí mám,\n\
|
||||
pokoj nalézám,\nkdyž na rámě jeho spoléhám!', 'v1'),
|
||||
@ -75,7 +87,7 @@ class TestOpenLyricsImport(TestCase):
|
||||
|
||||
def file_import_test(self):
|
||||
"""
|
||||
Test the actual import of real song files and check that the importer is called.
|
||||
Test the actual import of real song files
|
||||
"""
|
||||
# GIVEN: Test files with a mocked out "manager" and a mocked out "import_wizard"
|
||||
for song_file in SONG_TEST_DATA:
|
||||
|
@ -0,0 +1,44 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
<song xmlns="http://openlyrics.info/namespace/2009/song" version="0.8" createdIn="opensong2openlyrics.py 0.1" modifiedIn="convert-schema.py" modifiedDate="2013-03-12T09:13:04.212538">
|
||||
<properties>
|
||||
<titles>
|
||||
<title>What A Friend We Have In Jesus</title>
|
||||
</titles>
|
||||
<authors>
|
||||
<author>Joseph M. Scriven</author>
|
||||
<author>Charles C. Convers</author>
|
||||
</authors>
|
||||
<copyright>Public Domain</copyright>
|
||||
<ccliNo>27714</ccliNo>
|
||||
<themes>
|
||||
<theme>Christ: Love/Mercy</theme>
|
||||
<theme>Fruit: Peace/Comfort</theme>
|
||||
</themes>
|
||||
</properties>
|
||||
<lyrics>
|
||||
<verse name="v1">
|
||||
<lines>
|
||||
What a friend we have in Jesus, All ours sins and griefs to bear;<br/>
|
||||
What a privilege to carry, Everything to God in prayer!<br/>
|
||||
O what peace we often forfeit, O what needless pain we bear;<br/>
|
||||
All because we do not carry, Everything to God in prayer!
|
||||
</lines>
|
||||
</verse>
|
||||
<verse name="v2">
|
||||
<lines>
|
||||
Have we trials and temptations? Is there trouble anywhere?<br/>
|
||||
We should never be discouraged, Take it to the Lord in prayer.<br/>
|
||||
Can we find a friend so faithful? Who will all our sorrows share?<br/>
|
||||
Jesus knows our every weakness; Take it to the Lord in prayer.
|
||||
</lines>
|
||||
</verse>
|
||||
<verse name="v3">
|
||||
<lines>
|
||||
Are we weak and heavy laden, Cumbered with a load of care?<br/>
|
||||
Precious Saviour still our refuge; Take it to the Lord in prayer.<br/>
|
||||
Do thy friends despise forsake thee? Take it to the Lord in prayer!<br/>
|
||||
In His arms He’ll take and shield thee; Thou wilt find a solace there.
|
||||
</lines>
|
||||
</verse>
|
||||
</lyrics>
|
||||
</song>
|
Loading…
Reference in New Issue
Block a user