Fix Test Case Generator to not create illegal 'None' handles

Fixes #10230
This commit is contained in:
prculley 2017-11-03 16:40:25 -05:00 committed by Nick Hall
parent 896b9d96e2
commit 288b381453
2 changed files with 3 additions and 3 deletions

View File

@ -145,8 +145,8 @@ class ToolControl(unittest.TestCase):
"1 invalid birth event name was fixed",
"1 invalid death event name was fixed",
"2 places were referenced, but not found",
"15 citations were referenced, but not found",
"18 sources were referenced, but not found",
"2 citations were referenced, but not found",
"5 sources were referenced, but not found",
"9 Duplicated Gramps IDs fixed",
"7 empty objects removed",
"1 person objects",

View File

@ -1107,7 +1107,7 @@ class TestcaseGenerator(tool.BatchTool):
self.transaction_count += 1
c_h = "unknowncitationhandle"
self.create_all_possible_citations([c_h, None], "Broken22",
self.create_all_possible_citations([c_h, ''], "Broken22",
'non-existent citation')
def create_all_possible_citations(self, c_h_list, name, message):