From d35e0329c3febfb620a82aeac960951fd22cf203 Mon Sep 17 00:00:00 2001 From: Phill Ridout Date: Sun, 24 Dec 2017 07:15:50 +0000 Subject: [PATCH] More test fixes? --- .../openlp_plugins/bibles/test_wordprojectimport.py | 4 ++-- tests/functional/openlp_plugins/songs/test_opsproimport.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/functional/openlp_plugins/bibles/test_wordprojectimport.py b/tests/functional/openlp_plugins/bibles/test_wordprojectimport.py index 6304a6ef8..4f3a1c15a 100644 --- a/tests/functional/openlp_plugins/bibles/test_wordprojectimport.py +++ b/tests/functional/openlp_plugins/bibles/test_wordprojectimport.py @@ -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): diff --git a/tests/functional/openlp_plugins/songs/test_opsproimport.py b/tests/functional/openlp_plugins/songs/test_opsproimport.py index 099730d69..86f1c287d 100644 --- a/tests/functional/openlp_plugins/songs/test_opsproimport.py +++ b/tests/functional/openlp_plugins/songs/test_opsproimport.py @@ -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