* test/GrampsDb/GrampsDbBase_Test.py (test_reindex_reference_map):

Properly define lambda to fake the _update_reference_map method.


svn: r7678
This commit is contained in:
Alex Roitman 2006-11-24 05:39:14 +00:00
parent 5dd18318f9
commit 9aeb975d1c
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,6 @@
2006-11-23 Alex Roitman <shura@gramps-project.org>
* test/GrampsDb/GrampsDbBase_Test.py (test_reindex_reference_map):
Properly define lambda to fake the _update_reference_map method.
* test/GrampsDb/GrampsDbTestBase.py (tearDown): Close database at
the end of test.

View File

@ -156,7 +156,7 @@ class ReferenceMapTest (GrampsDbBaseTest):
# 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
self._db._update_reference_map = lambda x: 1
self._db._update_reference_map = lambda x,y: 1
# Insert a person/source pair.
source = self._add_source()