Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
add pod related unittests in testAPI
[releng.git]
/
utils
/
test
/
result_collection_api
/
tests
/
unit
/
fake_pymongo.py
diff --git
a/utils/test/result_collection_api/tests/unit/fake_pymongo.py
b/utils/test/result_collection_api/tests/unit/fake_pymongo.py
index
e2db460
..
e5ded37
100644
(file)
--- a/
utils/test/result_collection_api/tests/unit/fake_pymongo.py
+++ b/
utils/test/result_collection_api/tests/unit/fake_pymongo.py
@@
-123,6
+123,9
@@
class MemDb(object):
result = executor.submit(self._remove, spec_or_id)
return result
+ def clear(self):
+ self._remove()
+
pod = MemDb()
test_projects = MemDb()
test_cases = MemDb()