* 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:
parent
5dd18318f9
commit
9aeb975d1c
@ -1,4 +1,6 @@
|
|||||||
2006-11-23 Alex Roitman <shura@gramps-project.org>
|
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
|
* test/GrampsDb/GrampsDbTestBase.py (tearDown): Close database at
|
||||||
the end of test.
|
the end of test.
|
||||||
|
|
||||||
|
@ -156,7 +156,7 @@ class ReferenceMapTest (GrampsDbBaseTest):
|
|||||||
# unhook the reference_map update function so that we
|
# unhook the reference_map update function so that we
|
||||||
# can insert some records without the reference_map being updated.
|
# can insert some records without the reference_map being updated.
|
||||||
update_method = self._db._update_reference_map
|
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.
|
# Insert a person/source pair.
|
||||||
source = self._add_source()
|
source = self._add_source()
|
||||||
|
Loading…
Reference in New Issue
Block a user