~wgrant/openlp/openlyrics_test

« back to all changes in this revision

Viewing changes to testing/test_openlyrics.py

  • Committer: Martin Zibricky
  • Date: 2011-09-11 21:53:19 UTC
  • Revision ID: mzibr.public@gmail.com-20110911215319-uuckqa7bd9en78y4
Consolidating and restructuring test code

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
from openlp.plugins.songs.lib.db import Song
36
36
from openlp.plugins.songs.lib import OpenLyrics
37
37
 
38
 
def test_openlyrics_export(songs_db, openlyrics_validator, pth, tmpdir):
 
38
 
 
39
def test_openlyrics_export(openlp_runner, openlyrics_validator, pth, tmpdir):
39
40
    # export song to file
40
41
    f = tmpdir.join('out.xml')
41
 
    db = songs_db
 
42
    db = openlp_runner.get_songs_db()
42
43
    s = db.get_all_objects(Song)[0]
43
44
    o = OpenLyrics(db)
44
45
    xml = o.song_to_xml(s)