Skip to content

Commit

Permalink
tests: run generic ZODBTests from ZODB
Browse files Browse the repository at this point in the history
  • Loading branch information
jmuchemb committed Aug 19, 2020
1 parent 3d90ed4 commit 19a0328
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/ZEO/tests/testZEO.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
from ZEO._compat import WIN

from ZODB.Connection import TransactionMetaData
from ZODB.tests import StorageTestBase, BasicStorage, \
from ZODB.tests import testZODB, StorageTestBase, BasicStorage, \
TransactionalUndoStorage, \
PackableStorage, Synchronization, ConflictResolution, RevisionStorage, \
MTStorage, ReadOnlyStorage, IteratorStorage, RecoveryStorage
Expand Down Expand Up @@ -422,7 +422,7 @@ def new_dest(self):
return self._new_storage()


class FileStorageTests(FullGenericTests):
class FileStorageTests(FullGenericTests, testZODB.ZODBTests):
"""Test ZEO backed by a FileStorage."""

def getConfig(self):
Expand Down Expand Up @@ -455,6 +455,16 @@ def checkInterfaceFromRemoteStorage(self):
self._storage._info['interfaces']
)

@property
def _db(self):
self.__dict__['_db'] = db = ZODB.DB(self._storage)
def tearDown():
self._db.close()
del self.tearDown
self.tearDown()
self.tearDown = tearDown
return db


class FileStorageSSLTests(FileStorageTests):

Expand Down

0 comments on commit 19a0328

Please sign in to comment.