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