fix tests to allow for SongbookNumberInTitle defaulting to false and add hints tests

This commit is contained in:
John Lines 2019-09-03 10:52:09 +01:00
parent 5d494edf44
commit 6b8352abea
3 changed files with 17 additions and 2 deletions

View File

@ -46,3 +46,18 @@ class TestSingingTheFaithFileImport(SongImportTestHelper):
# Whole song
self.file_import([TEST_PATH / 'H2.txt'],
self.load_external_result_data(TEST_PATH / 'STF002.json'))
# Tests with hints - note that the hints directory has a hints.tag which specifies
# SongbookNumberInTitle: True
# The default is false, so the unhinted tests will not have the title, but the hinted
# song tests will need it
# Single verse
self.file_import([TEST_PATH / 'hints' / 'H1.txt'],
self.load_external_result_data(TEST_PATH / 'hints' / 'STF001.json'))
# Whole song
self.file_import([TEST_PATH / 'hints' / 'H2.txt'],
self.load_external_result_data(TEST_PATH / 'hints' / 'STF002.json'))

View File

@ -1,5 +1,5 @@
{
"title": "STF001 - Amazing Grace! how sweet the sound!",
"title": "Amazing Grace! how sweet the sound!",
"authors": [
"John Newton (d. 1807)"
],

View File

@ -1,5 +1,5 @@
{
"title": "STF002 - Amazing Grace! how sweet the sound!",
"title": "Amazing Grace! how sweet the sound!",
"authors": [
"John Newton (d. 1807)"
],