summaryrefslogtreecommitdiffstats
path: root/utils/test/result_collection_api/tests/unit/fake_pymongo.py
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-05-18 12:27:46 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-05-18 12:27:46 +0000
commit21f4c99126eff2c0b83b99a49458d0e74291cdae (patch)
tree4df09d7cdfe7741521fe14343bfa8ac7f3f6bcbc /utils/test/result_collection_api/tests/unit/fake_pymongo.py
parent004bb4383798905f4bef374fc5e35d7ac749d68d (diff)
parent9e67d0cb981b25b26d2720f1e749628b040eb51b (diff)
Merge "add pod related unittests in testAPI"
Diffstat (limited to 'utils/test/result_collection_api/tests/unit/fake_pymongo.py')
-rw-r--r--utils/test/result_collection_api/tests/unit/fake_pymongo.py3
1 files changed, 3 insertions, 0 deletions
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 e2db46038..e5ded376e 100644
--- 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()