Commit e4c8cfe4 authored by Jim Fulton's avatar Jim Fulton

Reimplemented MappingStorage to be more full featured, with a cleaner

and more instructive implementation.
parent 2268f9d3
This diff is collapsed.
...@@ -14,16 +14,30 @@ ...@@ -14,16 +14,30 @@
import ZODB.MappingStorage import ZODB.MappingStorage
import unittest import unittest
from ZODB.tests import StorageTestBase
from ZODB.tests import BasicStorage, MTStorage, Synchronization
from ZODB.tests import PackableStorage
class MappingStorageTests(StorageTestBase.StorageTestBase, from ZODB.tests import (
BasicStorage.BasicStorage, BasicStorage,
MTStorage.MTStorage, HistoryStorage,
PackableStorage.PackableStorage, IteratorStorage,
Synchronization.SynchronizedStorage, MTStorage,
): PackableStorage,
RevisionStorage,
StorageTestBase,
Synchronization,
)
class MappingStorageTests(
StorageTestBase.StorageTestBase,
BasicStorage.BasicStorage,
HistoryStorage.HistoryStorage,
IteratorStorage.ExtendedIteratorStorage,
IteratorStorage.IteratorStorage,
MTStorage.MTStorage,
PackableStorage.PackableStorage,
RevisionStorage.RevisionStorage,
Synchronization.SynchronizedStorage,
):
def setUp(self): def setUp(self):
self._storage = ZODB.MappingStorage.MappingStorage() self._storage = ZODB.MappingStorage.MappingStorage()
...@@ -36,7 +50,10 @@ class MappingStorageTests(StorageTestBase.StorageTestBase, ...@@ -36,7 +50,10 @@ class MappingStorageTests(StorageTestBase.StorageTestBase,
# doesnt support huge transaction metadata. This storage doesnt # doesnt support huge transaction metadata. This storage doesnt
# have this limit, so we inhibit this test here. # have this limit, so we inhibit this test here.
pass pass
def checkLoadBeforeUndo(self):
pass # we don't support undo yet
checkUndoZombie = checkLoadBeforeUndo
def test_suite(): def test_suite():
suite = unittest.makeSuite(MappingStorageTests, 'check') suite = unittest.makeSuite(MappingStorageTests, 'check')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment