* test/GrampsDb/GrampsDbTestBase.py: Provide a callback to db.load(). Hmmm, that worked without sometime back.

svn: r7615
This commit is contained in:
Martin Hawlisch 2006-11-11 21:46:22 +00:00
parent 8baec444e8
commit 682ea93e48
2 changed files with 7 additions and 4 deletions

View File

@ -1,3 +1,7 @@
2006-11-11 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* test/GrampsDb/GrampsDbTestBase.py: Provide a callback to db.load().
Hmmm, that worked without sometime back.
2006-11-10 Alex Roitman <shura@gramps-project.org>
* src/GrampsDb/_GrampsInMemDB.py (get_event_cursor): Remove extra
definition.

View File

@ -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)