summaryrefslogtreecommitdiffstats
path: root/result_collection_api/opnfv_testapi/tests
diff options
context:
space:
mode:
authorMorgan Richomme <morgan.richomme@orange.com>2016-06-04 16:59:51 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-06-04 16:59:52 +0000
commitc50f95a4e05af030f183af132ad4a5f46121e03f (patch)
treea9bcdfe70f2820ec232a2898012c6db38a409161 /result_collection_api/opnfv_testapi/tests
parentb561bb94f8f5b5e394c693f8b2a0c42995d66d43 (diff)
parentaad984f2b471149f0c8ceaf2487583cb0e64edf1 (diff)
Merge "test APi evolution add filter to retrieve last results"
Diffstat (limited to 'result_collection_api/opnfv_testapi/tests')
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py b/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py
index e556968..9b4d120 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py
@@ -32,6 +32,12 @@ class MemCursor(object):
self.count -= 1
return self.collection.pop()
+ def sort(self, key_or_list, direction=None):
+ return self
+
+ def limit(self, limit):
+ return self
+
class MemDb(object):