projects
/
be.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2ab5361
)
Add VersionedStorageTestCases in make_versioned_storage_testcase_subclasses
author
W. Trevor King
<wking@drexel.edu>
Mon, 18 Jan 2010 12:53:59 +0000
(07:53 -0500)
committer
W. Trevor King
<wking@drexel.edu>
Mon, 18 Jan 2010 12:53:59 +0000
(07:53 -0500)
libbe/storage/base.py
patch
|
blob
|
history
diff --git
a/libbe/storage/base.py
b/libbe/storage/base.py
index 0f6b09501aed0c49744988eae75bb21c0cfa7f29..1b0ceba91c5e4f7c4d99a2609b099677e7cd1721 100644
(file)
--- 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__