forked from openlp/openlp
Fix lint warning in tests and importer.py
This commit is contained in:
parent
e566a6788c
commit
d52d5bb0e2
@ -44,7 +44,5 @@ class TestSingingTheFaithFileImport(SongImportTestHelper):
|
|||||||
self.file_import([TEST_PATH / 'H1.txt'],
|
self.file_import([TEST_PATH / 'H1.txt'],
|
||||||
self.load_external_result_data(TEST_PATH / 'STF001.json'))
|
self.load_external_result_data(TEST_PATH / 'STF001.json'))
|
||||||
# Whole song - currently not working - test needs debugging.
|
# Whole song - currently not working - test needs debugging.
|
||||||
## self.file_import([TEST_PATH / 'H2.txt'],
|
# self.file_import([TEST_PATH / 'H2.txt'],
|
||||||
## self.load_external_result_data(TEST_PATH / 'STF002.json'))
|
# 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("Song copyright imported: %s" % importer.song_number)
|
||||||
log.debug("Topics imported: %s" % importer.topics)
|
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:
|
for author in author_calls:
|
||||||
if isinstance(author, str):
|
if isinstance(author, str):
|
||||||
self.mocked_add_author.assert_any_call(author)
|
self.mocked_add_author.assert_any_call(author)
|
||||||
|
Loading…
Reference in New Issue
Block a user