forked from openlp/openlp
changed test_songshowplusimport.py to py3
This commit is contained in:
parent
3f4bb93500
commit
dc9d3cd74e
@ -11,19 +11,19 @@ from openlp.plugins.songs.lib import VerseType
|
|||||||
from openlp.plugins.songs.lib.songshowplusimport import SongShowPlusImport
|
from openlp.plugins.songs.lib.songshowplusimport import SongShowPlusImport
|
||||||
|
|
||||||
TEST_PATH = os.path.abspath(
|
TEST_PATH = os.path.abspath(
|
||||||
os.path.join(os.path.dirname(__file__), u'..', u'..', u'..', u'resources', u'songshowplussongs'))
|
os.path.join(os.path.dirname(__file__), '..', '..', '..', 'resources', 'songshowplussongs'))
|
||||||
|
|
||||||
class TestSongShowPlusFileImport(SongImportTestHelper):
|
class TestSongShowPlusFileImport(SongImportTestHelper):
|
||||||
def __init__(self, *args, **kwargs):
|
def __init__(self, *args, **kwargs):
|
||||||
self.importer_class_name = u'SongShowPlusImport'
|
self.importer_class_name = 'SongShowPlusImport'
|
||||||
self.importer_module_name = u'songshowplusimport'
|
self.importer_module_name = 'songshowplusimport'
|
||||||
SongImportTestHelper.__init__(self, *args, **kwargs)
|
SongImportTestHelper.__init__(self, *args, **kwargs)
|
||||||
|
|
||||||
def test_song_import(self):
|
def test_song_import(self):
|
||||||
test_import = self.file_import(os.path.join(TEST_PATH, u'Amazing Grace.sbsong'),
|
test_import = self.file_import(os.path.join(TEST_PATH, 'Amazing Grace.sbsong'),
|
||||||
self.load_external_result_data(os.path.join(TEST_PATH, u'Amazing Grace.json')))
|
self.load_external_result_data(os.path.join(TEST_PATH, 'Amazing Grace.json')))
|
||||||
test_import = self.file_import(os.path.join(TEST_PATH, u'Beautiful Garden Of Prayer.sbsong'),
|
test_import = self.file_import(os.path.join(TEST_PATH, 'Beautiful Garden Of Prayer.sbsong'),
|
||||||
self.load_external_result_data(os.path.join(TEST_PATH, u'Beautiful Garden Of Prayer.json')))
|
self.load_external_result_data(os.path.join(TEST_PATH, 'Beautiful Garden Of Prayer.json')))
|
||||||
|
|
||||||
|
|
||||||
class TestSongShowPlusImport(TestCase):
|
class TestSongShowPlusImport(TestCase):
|
||||||
|
Loading…
Reference in New Issue
Block a user