[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/testConnection.py Removed unused berkeley storage tests.

Jim Fulton jim at zope.com
Fri Dec 19 10:05:26 EST 2008


Log message for revision 94196:
  Removed unused berkeley storage tests.
  
  Removed test levels. Test levels are an invitation to inadvertently
  not run tests.
  

Changed:
  U   ZODB/trunk/src/ZEO/tests/testConnection.py

-=-
Modified: ZODB/trunk/src/ZEO/tests/testConnection.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/testConnection.py	2008-12-19 15:05:24 UTC (rev 94195)
+++ ZODB/trunk/src/ZEO/tests/testConnection.py	2008-12-19 15:05:26 UTC (rev 94196)
@@ -35,14 +35,6 @@
                              create and 'yes' or 'no',
                              read_only and 'yes' or 'no')
 
-class BerkeleyStorageConfig:
-    def getConfig(self, path, create, read_only):
-        return """\
-        <fullstorage 1>
-        envdir %s
-        read-only %s
-        </fullstorage>""" % (path, read_only and "yes" or "no")
-
 class MappingStorageConfig:
     def getConfig(self, path, create, read_only):
         return """<mappingstorage 1/>"""
@@ -54,7 +46,6 @@
     InvalidationTests.InvalidationTests
     ):
     """FileStorage-specific connection tests."""
-    level = 2
 
 class FileStorageReconnectionTests(
     FileStorageConfig,
@@ -62,56 +53,25 @@
     ):
     """FileStorage-specific re-connection tests."""
     # Run this at level 1 because MappingStorage can't do reconnection tests
-    level = 1
 
 class FileStorageInvqTests(
     FileStorageConfig,
     ConnectionTests.InvqTests
     ):
     """FileStorage-specific invalidation queue tests."""
-    level = 1
 
 class FileStorageTimeoutTests(
     FileStorageConfig,
     ConnectionTests.TimeoutTests
     ):
-    level = 2
+    pass
 
-class BDBConnectionTests(
-    BerkeleyStorageConfig,
-    ConnectionTests.ConnectionTests,
-    InvalidationTests.InvalidationTests
-    ):
-    """Berkeley storage connection tests."""
-    level = 2
 
-class BDBReconnectionTests(
-    BerkeleyStorageConfig,
-    ConnectionTests.ReconnectionTests
-    ):
-    """Berkeley storage re-connection tests."""
-    level = 2
-
-class BDBInvqTests(
-    BerkeleyStorageConfig,
-    ConnectionTests.InvqTests
-    ):
-    """Berkeley storage invalidation queue tests."""
-    level = 2
-
-class BDBTimeoutTests(
-    BerkeleyStorageConfig,
-    ConnectionTests.TimeoutTests
-    ):
-    level = 2
-
-
 class MappingStorageConnectionTests(
     MappingStorageConfig,
     ConnectionTests.ConnectionTests
     ):
     """Mapping storage connection tests."""
-    level = 1
 
 # The ReconnectionTests can't work with MappingStorage because it's only an
 # in-memory storage and has no persistent state.
@@ -120,10 +80,8 @@
     MappingStorageConfig,
     ConnectionTests.TimeoutTests
     ):
-    level = 1
+    pass
 
-
-
 test_classes = [FileStorageConnectionTests,
                 FileStorageReconnectionTests,
                 FileStorageInvqTests,



More information about the Zodb-checkins mailing list