diff options
author | 2016-07-06 08:49:08 +0000 | |
---|---|---|
committer | 2016-07-06 08:49:08 +0000 | |
commit | e7d30f13856514cf078761d68aeccbdc2e85f23f (patch) | |
tree | cdb5d19010ec7161567103d6164530680ae92015 /utils/test/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py | |
parent | 406c93db02476c7cea06153fb968b8765ecb0e83 (diff) | |
parent | de44f61e2f92f1a2bac45c40781f0b927a412b2c (diff) |
Merge "Add a put result method to modify trust_indicator"
Diffstat (limited to 'utils/test/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py')
-rw-r--r-- | utils/test/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/utils/test/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py b/utils/test/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py index 6ab98c720..450969248 100644 --- a/utils/test/result_collection_api/opnfv_testapi/tests/unit/fake_pymongo.py +++ b/utils/test/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('$'): |