From 06029afcfdc7c64a1fe0442b5386f81634ef8271 Mon Sep 17 00:00:00 2001 From: Martin Hawlisch Date: Sat, 11 Nov 2006 21:46:22 +0000 Subject: [PATCH] * test/GrampsDb/GrampsDbTestBase.py: Provide a callback to db.load(). Hmmm, that worked without sometime back. svn: r7615 --- gramps2/ChangeLog | 4 ++++ gramps2/test/GrampsDb/GrampsDbTestBase.py | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index 87064f2ff..e7180254e 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,3 +1,7 @@ +2006-11-11 Martin Hawlisch + * test/GrampsDb/GrampsDbTestBase.py: Provide a callback to db.load(). + Hmmm, that worked without sometime back. + 2006-11-10 Alex Roitman * src/GrampsDb/_GrampsInMemDB.py (get_event_cursor): Remove extra definition. diff --git a/gramps2/test/GrampsDb/GrampsDbTestBase.py b/gramps2/test/GrampsDb/GrampsDbTestBase.py index 869921706..ff96271fb 100644 --- a/gramps2/test/GrampsDb/GrampsDbTestBase.py +++ b/gramps2/test/GrampsDb/GrampsDbTestBase.py @@ -25,13 +25,13 @@ class GrampsDbBaseTest(unittest.TestCase): test databases.""" def setUp(self): + def dummy_callback(dummy): + pass self._tmpdir = tempfile.mkdtemp() self._filename = os.path.join(self._tmpdir,'test.grdb') self._db = GrampsDb.gramps_db_factory(const.app_gramps)() - self._db.load(self._filename, - None, # callback - "w") + self._db.load(self._filename, dummy_callback, "w") def tearDown(self): @@ -157,4 +157,3 @@ class GrampsDbBaseTest(unittest.TestCase): RelLib.MediaObject, self._db.add_object, self._db.commit_media_object) -