diff options
author | 2016-05-19 18:13:27 +0800 | |
---|---|---|
committer | 2016-05-19 18:18:07 +0800 | |
commit | f25ad4e8a7e4bd6505b2144494da81fbcad40b7d (patch) | |
tree | c811d7b15048680d7d6717beb02bfbfa75aea717 /utils/test/result_collection_api/tests/unit/fake_pymongo.py | |
parent | 598be795dec8fa11bee7b6e140b33947ab35b8f0 (diff) |
add unittests of project & refactor response
post body: {'href':'<http://ip:8000/pods/pod_name >'}
get body: Pod/Project
list body: list of Pod/Project
update body: Pod/Project
delete: no body
JIRA: FUNCTEST-253
Change-Id: I28c6f5b35d8909d827f2f803197d95be4abd44bb
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
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.py | 4 |
1 files changed, 2 insertions, 2 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 e5ded376e..a6d91aee7 100644 --- a/utils/test/result_collection_api/tests/unit/fake_pymongo.py +++ b/utils/test/result_collection_api/tests/unit/fake_pymongo.py @@ -126,7 +126,7 @@ class MemDb(object): def clear(self): self._remove() -pod = MemDb() -test_projects = MemDb() +pods = MemDb() +projects = MemDb() test_cases = MemDb() test_results = MemDb() |