forked from openlp/openlp
Fix lint warning in tests and importer.py
This commit is contained in:
parent
e566a6788c
commit
d52d5bb0e2
@ -345,7 +345,7 @@ class SongFormat(object):
|
||||
'filter': '{text} (*.pro4 *.pro5 *.pro6)'.format(text=translate('SongsPlugin.ImportWizardForm',
|
||||
'ProPresenter Song Files'))
|
||||
},
|
||||
SingingTheFaith: {
|
||||
SingingTheFaith: {
|
||||
'class': SingingTheFaithImport,
|
||||
'name': 'SingingTheFaith',
|
||||
'prefix': 'singingTheFaith',
|
||||
|
@ -44,7 +44,5 @@ class TestSingingTheFaithFileImport(SongImportTestHelper):
|
||||
self.file_import([TEST_PATH / 'H1.txt'],
|
||||
self.load_external_result_data(TEST_PATH / 'STF001.json'))
|
||||
# Whole song - currently not working - test needs debugging.
|
||||
## self.file_import([TEST_PATH / 'H2.txt'],
|
||||
## self.load_external_result_data(TEST_PATH / 'STF002.json'))
|
||||
|
||||
|
||||
# self.file_import([TEST_PATH / 'H2.txt'],
|
||||
# self.load_external_result_data(TEST_PATH / 'STF002.json'))
|
||||
|
@ -123,7 +123,8 @@ class SongImportTestHelper(TestCase):
|
||||
log.debug("Song copyright imported: %s" % importer.song_number)
|
||||
log.debug("Topics imported: %s" % importer.topics)
|
||||
|
||||
assert importer.title == title, 'title for %s should be "%s" and is "%s"' % (source_file_name, title, importer.title)
|
||||
assert importer.title == title, \
|
||||
'title for %s should be "%s" and is "%s"' % (source_file_name, title, importer.title)
|
||||
for author in author_calls:
|
||||
if isinstance(author, str):
|
||||
self.mocked_add_author.assert_any_call(author)
|
||||
|
Loading…
Reference in New Issue
Block a user