Skip to content

Commit

Permalink
Finished adding tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dsblank committed Jan 8, 2025
1 parent 5204a60 commit 93529ef
Show file tree
Hide file tree
Showing 4 changed files with 347 additions and 350 deletions.
2 changes: 1 addition & 1 deletion data/tests/example.gramps
Original file line number Diff line number Diff line change
Expand Up @@ -18213,7 +18213,7 @@
<childof hlink="_DLTJQCAPOXEIKSOU3J"/>
<citationref hlink="_c140d24638d5368e8e4"/>
</person>
<person handle="_0GDKQC54XKSWZKEBWW" change="1185438865" id="I0988">
<person handle="_0GDKQC54XKSWZKEBWW" change="1185438865" id="I0988" priv="1">
<gender>M</gender>
<name type="Birth Name">
<first>John</first>
Expand Down
4 changes: 2 additions & 2 deletions gramps/gen/filters/rules/test/person_rules_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -1206,15 +1206,15 @@ def test_peopleprivate(self):
"""
# TODO: example.gramps has no people marked private
rule = PeoplePrivate([])
self.assertEqual(self.filter_with_rule(rule), set([]))
self.assertEqual(self.filter_with_rule(rule), set(["0GDKQC54XKSWZKEBWW"]))

def test_peoplepublic(self):
"""
Test PeoplePublic rule.
"""
rule = PeoplePublic([])
# too many to list out to test explicitly
self.assertEqual(len(self.filter_with_rule(rule)), 2128)
self.assertEqual(len(self.filter_with_rule(rule)), 2127)

def test_personwithincompleteevent(self):
"""
Expand Down
Loading

0 comments on commit 93529ef

Please sign in to comment.