From dbc999669b29a8a327353298eac819b478120b02 Mon Sep 17 00:00:00 2001 From: CWSchulze Date: Sat, 28 Mar 2020 22:20:36 +0100 Subject: [PATCH 1/2] Add Godparent as event role --- gramps/gen/lib/eventroletype.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gramps/gen/lib/eventroletype.py b/gramps/gen/lib/eventroletype.py index 2ab524ab0..5a97fe9f0 100644 --- a/gramps/gen/lib/eventroletype.py +++ b/gramps/gen/lib/eventroletype.py @@ -44,6 +44,7 @@ class EventRoleType(GrampsType): WITNESS = 7 FAMILY = 8 INFORMANT = 9 + GODPARENT = 10 _CUSTOM = CUSTOM _DEFAULT = PRIMARY @@ -60,6 +61,7 @@ class EventRoleType(GrampsType): (WITNESS, _("Witness"), "Witness"), (FAMILY, _("Family", "Role"), "Family"), (INFORMANT, _("Informant"), "Informant"), + (GODPARENT, _("Godparent"), "Godparent"), ] def __init__(self, value=None): From c2f46da34f8910e7f6adf710faefa461e000e9b0 Mon Sep 17 00:00:00 2001 From: Nick Hall Date: Thu, 10 Feb 2022 21:58:55 +0000 Subject: [PATCH 2/2] Fix unit test for check & repair tool --- gramps/plugins/test/tools_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/test/tools_test.py b/gramps/plugins/test/tools_test.py index 80e6cf346..9d915eaf7 100644 --- a/gramps/plugins/test/tools_test.py +++ b/gramps/plugins/test/tools_test.py @@ -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", - "14 citations were referenced, but not found", - "17 sources were referenced, but not found", + "10 citations were referenced, but not found", + "13 sources were referenced, but not found", "9 Duplicated Gramps IDs fixed", "7 empty objects removed", "1 person objects",