* test/GrampsDb/GrampsDbTestBase.py: Provide a callback to db.load(). Hmmm, that worked without sometime back.
svn: r7615
This commit is contained in:
parent
f1c39b2b1e
commit
06029afcfd
@ -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.
|
||||
|
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user