diff options
author | 2016-07-06 08:49:08 +0000 | |
---|---|---|
committer | 2016-07-06 08:49:08 +0000 | |
commit | 049e6265ac30ddf7392cdcf1cf4b3399364a2ef1 (patch) | |
tree | 3141a6c930cd5d2e78f7939bd5f01498eb8bcefe /result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py | |
parent | b7d3e63e77b1de41e9d9fb14fa32456096460022 (diff) | |
parent | b3eccb10c0fa8812413288771a74c9c10556eb93 (diff) |
Merge "Add a put result method to modify trust_indicator"
Diffstat (limited to 'result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py')
-rw-r--r-- | result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py | 5 |
1 files changed, 2 insertions, 3 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 6ab98c7..4509692 100644 --- a/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py +++ b/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py @@ -116,8 +116,8 @@ class MemDb(object): if k == 'start_date': if not MemDb._compare_date(v, content.get(k)): return False - elif k == 'trust_indicator': - if float(content.get(k)) != float(v): + elif k == 'trust_indicator.current': + if content.get('trust_indicator').get('current') != v: return False elif content.get(k, None) != v: return False @@ -173,7 +173,6 @@ class MemDb(object): def _check_keys(self, doc): for key in doc.keys(): - print('key', key, 'value', doc.get(key)) if '.' in key: raise NameError('key {} must not contain .'.format(key)) if key.startswith('$'): |