Code Review
/
releng.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
Fix security issues of eval-s in testapi
[releng.git]
/
utils
/
test
/
result_collection_api
/
opnfv_testapi
/
tests
/
unit
/
fake_pymongo.py
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
4509692
..
3dd87e6
100644
(file)
--- 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
@@
-181,6
+181,10
@@
class MemDb(object):
self._check_keys(doc.get(key))
+def __getattr__(name):
+ return globals()[name]
+
+
pods = MemDb()
projects = MemDb()
testcases = MemDb()