diff --git a/openlp/plugins/songs/lib/importers/songbeamer.py b/openlp/plugins/songs/lib/importers/songbeamer.py index b7f2c0a59..3399294d2 100644 --- a/openlp/plugins/songs/lib/importers/songbeamer.py +++ b/openlp/plugins/songs/lib/importers/songbeamer.py @@ -215,7 +215,7 @@ class SongBeamerImport(SongImport): elif tag_val[0] == '#AddCopyrightInfo': pass elif tag_val[0] == '#AudioFile': - parse_audio_file(tag_val[1]) + self.parse_audio_file(tag_val[1]) elif tag_val[0] == '#Author': self.parse_author(tag_val[1]) elif tag_val[0] == '#BackgroundImage': diff --git a/tests/functional/openlp_plugins/songs/test_songbeamerimport.py b/tests/functional/openlp_plugins/songs/test_songbeamerimport.py index 5bbfcf249..b15ce6c92 100644 --- a/tests/functional/openlp_plugins/songs/test_songbeamerimport.py +++ b/tests/functional/openlp_plugins/songs/test_songbeamerimport.py @@ -105,7 +105,8 @@ class TestSongBeamerImport(TestCase): self.importer.import_source = source # THEN: do_import should return none and the progress bar maximum should not be set. - self.assertIsNone(self.importer.do_import(), 'do_import should return None when import_source is not a list') + self.assertIsNone(self.importer.do_import(), + 'do_import should return None when import_source is not a list') self.assertEqual(mocked_import_wizard.progress_bar.setMaximum.called, False, 'setMaxium on import_wizard.progress_bar should not have been called') @@ -175,7 +176,8 @@ class TestSongBeamerImport(TestCase): result = self.importer.check_verse_marks(line) # THEN: we should get back false and none as self.importer.current_verse_type self.assertFalse(result, 'No versemark for should be found, value false') - self.assertIsNone(self.importer.current_verse_type, ' should be interpreted as none versemark') + self.assertIsNone(self.importer.current_verse_type, + ' should be interpreted as none versemark') # GIVEN: line with song-text with 2 words line = 'Praise him'