[Zodb-checkins] CVS: Zope3/src/zodb/code/tests - test_class.py:1.7 test_module.py:1.8

Jeremy Hylton jeremy@zope.com
Tue, 18 Feb 2003 09:53:31 -0500


Update of /cvs-repository/Zope3/src/zodb/code/tests
In directory cvs.zope.org:/tmp/cvs-serv2365/src/zodb/code/tests

Modified Files:
	test_class.py test_module.py 
Log Message:
Nearly complete port of ZODB 3.2 features to Zope3.

Must still resolve 6 failing tests -- 4 for read-only FS, 2 for
verification. 

Remove use of DB helper functions in storage modules.  It's easier to
use the config stuff moving forward.

Fiddle commit lock tests to run on all storages when possible.  Two
unknown problems with BDB.

Synthesize appropriate ZEO+storage tests from consituent classes.


=== Zope3/src/zodb/code/tests/test_class.py 1.6 => 1.7 ===
--- Zope3/src/zodb/code/tests/test_class.py:1.6	Thu Jan 30 13:50:14 2003
+++ Zope3/src/zodb/code/tests/test_class.py	Tue Feb 18 09:53:00 2003
@@ -14,9 +14,6 @@
 import os
 import unittest
 
-import zodb.db
-from zodb.storage.mapping import DB, MappingStorage
-
 from zodb.code.tests.test_module import TestBase
 from zodb.code.module import newModule
 


=== Zope3/src/zodb/code/tests/test_module.py 1.7 => 1.8 ===
--- Zope3/src/zodb/code/tests/test_module.py:1.7	Thu Jan 16 09:45:54 2003
+++ Zope3/src/zodb/code/tests/test_module.py	Tue Feb 18 09:53:00 2003
@@ -19,7 +19,7 @@
 from transaction import get_transaction
 
 import zodb.db
-from zodb.storage.mapping import DB, MappingStorage
+from zodb.storage.mapping import MappingStorage
 from zodb.code import tests # import this package, to get at __file__ reliably
 from zodb.code.module \
      import ManagedRegistry, PersistentModuleImporter, PersistentPackage
@@ -86,7 +86,7 @@
 class TestBase(unittest.TestCase):
 
     def setUp(self):
-        self.db = DB()
+        self.db = zodb.db.DB(MappingStorage())
         self.root = self.db.open().root()
         self.registry = ManagedRegistry()
         self.importer = TestPersistentModuleImporter(self.registry)