diff test/db_test_base.py @ 2403:1cc51a44ce39 maint-0.7

merge from HEAD
author Richard Jones <richard@users.sourceforge.net>
date Tue, 08 Jun 2004 05:39:37 +0000
parents 4fd7a1805544
children 422b684313d5
line wrap: on
line diff
--- a/test/db_test_base.py	Tue Jun 08 05:34:21 2004 +0000
+++ b/test/db_test_base.py	Tue Jun 08 05:39:37 2004 +0000
@@ -15,7 +15,7 @@
 # BASIS, AND THERE IS NO OBLIGATION WHATSOEVER TO PROVIDE MAINTENANCE,
 # SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
 # 
-# $Id: db_test_base.py,v 1.27.2.1 2004-05-16 09:33:14 richard Exp $ 
+# $Id: db_test_base.py,v 1.27.2.2 2004-06-08 05:35:44 richard Exp $ 
 
 import unittest, os, shutil, errno, imp, sys, time, pprint
 
@@ -960,11 +960,13 @@
 
         # grab the export
         export = {}
+        journals = {}
         for cn,klass in self.db.classes.items():
             names = klass.getprops().keys()
             cl = export[cn] = [names+['is retired']]
             for id in klass.getnodeids():
                 cl.append(klass.export_list(names, id))
+            journals[cn] = klass.export_journals()
 
         # shut down this db and nuke it
         self.db.close()
@@ -983,6 +985,7 @@
             for itemprops in items[1:]:
                 maxid = max(maxid, int(klass.import_list(names, itemprops)))
             self.db.setid(cn, str(maxid+1))
+            klass.import_journals(journals[cn])
 
         # compare with snapshot of the database
         for cn, items in orig.items():

Roundup Issue Tracker: http://roundup-tracker.org/