forked from openlp/openlp
More test fixes?
This commit is contained in:
parent
2f28618e2a
commit
d35e0329c3
@ -31,8 +31,8 @@ from openlp.plugins.bibles.lib.importers.wordproject import WordProjectBible
|
|||||||
from tests.utils.constants import RESOURCE_PATH
|
from tests.utils.constants import RESOURCE_PATH
|
||||||
|
|
||||||
TEST_PATH = RESOURCE_PATH / 'bibles'
|
TEST_PATH = RESOURCE_PATH / 'bibles'
|
||||||
INDEX_PAGE = (TEST_PATH / 'wordproject_index.htm').read_text()
|
INDEX_PAGE = (TEST_PATH / 'wordproject_index.htm').read_bytes().decode()
|
||||||
CHAPTER_PAGE = (TEST_PATH / 'wordproject_chapter.htm').read_text()
|
CHAPTER_PAGE = (TEST_PATH / 'wordproject_chapter.htm').read_bytes().decode()
|
||||||
|
|
||||||
|
|
||||||
class TestWordProjectImport(TestCase):
|
class TestWordProjectImport(TestCase):
|
||||||
|
@ -60,7 +60,7 @@ def _build_data(test_file, dual_language):
|
|||||||
song.Version = '1'
|
song.Version = '1'
|
||||||
song.Origin = '...'
|
song.Origin = '...'
|
||||||
lyrics = MagicMock()
|
lyrics = MagicMock()
|
||||||
lyrics.Lyrics = (TEST_PATH / test_file).read_text()
|
lyrics.Lyrics = (TEST_PATH / test_file).read_bytes().decode()
|
||||||
lyrics.Type = 1
|
lyrics.Type = 1
|
||||||
lyrics.IsDualLanguage = dual_language
|
lyrics.IsDualLanguage = dual_language
|
||||||
return song, lyrics
|
return song, lyrics
|
||||||
|
Loading…
Reference in New Issue
Block a user