forked from openlp/openlp
Fix for py3
This commit is contained in:
parent
78e5ad4af7
commit
ca3e32c294
@ -53,7 +53,7 @@ class SongImportTestHelper(TestCase):
|
||||
A method to load and return an object containing the song data from an external file.
|
||||
"""
|
||||
result_file = open(file_name, 'rb')
|
||||
return json.loads(result_file.read())
|
||||
return json.loads(result_file.read().decode())
|
||||
|
||||
def file_import(self, source_file_name, result_data):
|
||||
"""
|
||||
|
@ -63,7 +63,7 @@ class TestSongShowPlusImport(TestCase):
|
||||
# THEN: doImport should return none and the progress bar maximum should not be set.
|
||||
self.assertIsNone(importer.doImport(), 'doImport should return None when import_source is not a list')
|
||||
self.assertEquals(mocked_import_wizard.progress_bar.setMaximum.called, False,
|
||||
'setMaxium on import_wizard.progress_bar should not have been called')
|
||||
'setMaximum on import_wizard.progress_bar should not have been called')
|
||||
|
||||
def valid_import_source_test(self):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user