diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index fd01d204e..b71fd5b3c 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-12-13 Richard Taylor + * test/GrampsDb/GrampsDbBase_Test.py: fix test case to work with + reindex_reference_map + 2006-12-13 Martin Hawlisch * src/Filters/Rules/Person/_HasRelationship.py: Fix FamilyRelType comparison (closes #758) diff --git a/gramps2/test/GrampsDb/GrampsDbBase_Test.py b/gramps2/test/GrampsDb/GrampsDbBase_Test.py index 252c399de..9e1571cc4 100644 --- a/gramps2/test/GrampsDb/GrampsDbBase_Test.py +++ b/gramps2/test/GrampsDb/GrampsDbBase_Test.py @@ -153,6 +153,9 @@ class ReferenceMapTest (GrampsDbBaseTest): def test_reindex_reference_map(self): """Test that the reindex function works.""" + def cb(count): + pass + # unhook the reference_map update function so that we # can insert some records without the reference_map being updated. update_method = self._db._update_reference_map @@ -169,7 +172,7 @@ class ReferenceMapTest (GrampsDbBaseTest): # Reinstate the reference_map method and reindex the database self._db._update_reference_map = update_method - self._db.reindex_reference_map() + self._db.reindex_reference_map(cb) # Check that the reference now appears in the reference_map references = [ ref for ref in self._db.find_backlink_handles(source.get_handle()) ]