aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/base.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2010-01-18 07:53:59 -0500
committerW. Trevor King <wking@drexel.edu>2010-01-18 07:53:59 -0500
commit8688804803235e1ca472526ed1904599bfba8e6c (patch)
tree6d919c3171a26fd4d32cdca4b611d39a2f7fa873 /libbe/storage/base.py
parent2ab53616af78a0f84b768f65c7a5dbb0c6ed9492 (diff)
downloadbugseverywhere-8688804803235e1ca472526ed1904599bfba8e6c.tar.gz
Add VersionedStorageTestCases in make_versioned_storage_testcase_subclasses
Diffstat (limited to 'libbe/storage/base.py')
-rw-r--r--libbe/storage/base.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/libbe/storage/base.py b/libbe/storage/base.py
index 0f6b095..1b0ceba 100644
--- a/libbe/storage/base.py
+++ b/libbe/storage/base.py
@@ -960,8 +960,11 @@ if TESTING == True:
storage_testcase_classes = [
c for c in (
ob for ob in globals().values() if isinstance(ob, type))
- if issubclass(c, StorageTestCase) \
- and c.Class == Storage]
+ if ((issubclass(c, StorageTestCase) \
+ and c.Class == Storage)
+ or
+ (issubclass(c, VersionedStorageTestCase) \
+ and c.Class == VersionedStorage))]
for base_class in storage_testcase_classes:
testcase_class_name = storage_class.__name__ + base_class.__name__