[Zodb-checkins] SVN: ZODB/trunk/src/ZEO/tests/testZEO.py Added tests of running DemoStorage under ZEO. Sadly, this doesn't

Jim Fulton jim at zope.com
Wed Apr 25 17:00:09 EDT 2007


Log message for revision 74768:
  Added tests of running DemoStorage under ZEO.  Sadly, this doesn't
  detect the fact that DemoStorage doesn't implement getTid and that
  theerfore cache verification is broken.  This still needs to be
  pursued.
  

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

-=-
Modified: ZODB/trunk/src/ZEO/tests/testZEO.py
===================================================================
--- ZODB/trunk/src/ZEO/tests/testZEO.py	2007-04-25 20:46:51 UTC (rev 74767)
+++ ZODB/trunk/src/ZEO/tests/testZEO.py	2007-04-25 21:00:08 UTC (rev 74768)
@@ -222,6 +222,36 @@
     def getConfig(self):
         return """<mappingstorage 1/>"""
 
+class DemoStorageTests(
+    GenericTests,
+    Cache.StorageWithCache,
+    VersionStorage.VersionStorage,
+    ):
+
+    def getConfig(self):
+        return """
+        <demostorage 1>
+          <filestorage 1>
+             path %s
+          </filestorage>
+        </demostorage>
+        """ % tempfile.mktemp()
+
+    def checkLoadBeforeVersion(self):
+        # Doesn't implement loadBefore, except as a kind of place holder.
+        pass
+    
+    # the next three pack tests depend on undo
+
+    def checkPackVersionReachable(self):
+        pass
+
+    def checkPackVersions(self):
+        pass
+
+    def checkPackVersionsInPast(self):
+        pass
+
 class HeartbeatTests(ZEO.tests.ConnectionTests.CommonSetupTearDown):
     """Make sure a heartbeat is being sent and that it does no harm
 
@@ -782,7 +812,7 @@
     """
 
 
-test_classes = [FileStorageTests, MappingStorageTests,
+test_classes = [FileStorageTests, MappingStorageTests, DemoStorageTests,
                 BlobAdaptedFileStorageTests, BlobWritableCacheTests]
 
 



More information about the Zodb-checkins mailing list