add test result/dashboard related unittests in testAPI and refactor its response
authorSerenaFeng <feng.xiaowei@zte.com.cn>
Mon, 23 May 2016 10:34:19 +0000 (18:34 +0800)
committerSerenaFeng <feng.xiaowei@zte.com.cn>
Wed, 25 May 2016 07:14:28 +0000 (15:14 +0800)
commit0c898e11323cf4e5baabecb55d8be2ff2268690d
tree85860cd1859ebcfc6c877c115acecbab8b2c5266
parent12ef6fc908872a2c8f52b53d3f2527d98365fd91
add test result/dashboard related unittests in testAPI and refactor its response

modification:
  add unittests for test result/dashboard
  rename test_results table name in db to results
  refactor response body

JIRA: FUNCTEST-255

Change-Id: I0657e6e95156a8c79072e7333fd8aaeb12d986e5
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
result_collection_api/dashboard/dashboard_utils.py
result_collection_api/resources/handlers.py
result_collection_api/resources/models.py
result_collection_api/resources/result_models.py [new file with mode: 0644]
result_collection_api/tests/unit/fake_pymongo.py
result_collection_api/tests/unit/test_base.py
result_collection_api/tests/unit/test_dashboard.py [new file with mode: 0644]
result_collection_api/tests/unit/test_fake_pymongo.py
result_collection_api/tests/unit/test_result.py [new file with mode: 0644]
result_collection_api/tests/unit/test_testcase.py