More test fixes?

This commit is contained in:
Phill Ridout 2017-12-24 07:15:50 +00:00
parent 2f28618e2a
commit d35e0329c3
2 changed files with 3 additions and 3 deletions

View File

@ -31,8 +31,8 @@ from openlp.plugins.bibles.lib.importers.wordproject import WordProjectBible
from tests.utils.constants import RESOURCE_PATH
TEST_PATH = RESOURCE_PATH / 'bibles'
INDEX_PAGE = (TEST_PATH / 'wordproject_index.htm').read_text()
CHAPTER_PAGE = (TEST_PATH / 'wordproject_chapter.htm').read_text()
INDEX_PAGE = (TEST_PATH / 'wordproject_index.htm').read_bytes().decode()
CHAPTER_PAGE = (TEST_PATH / 'wordproject_chapter.htm').read_bytes().decode()
class TestWordProjectImport(TestCase):

View File

@ -60,7 +60,7 @@ def _build_data(test_file, dual_language):
song.Version = '1'
song.Origin = '...'
lyrics = MagicMock()
lyrics.Lyrics = (TEST_PATH / test_file).read_text()
lyrics.Lyrics = (TEST_PATH / test_file).read_bytes().decode()
lyrics.Type = 1
lyrics.IsDualLanguage = dual_language
return song, lyrics