summaryrefslogtreecommitdiffstats
path: root/result_collection_api
diff options
context:
space:
mode:
authorSerenaFeng <feng.xiaowei@zte.com.cn>2016-07-02 00:04:41 +0800
committerSerenaFeng <feng.xiaowei@zte.com.cn>2016-07-02 00:04:41 +0800
commit412e9ce23a932ecb6fa7a356d5ce3204fb2a5127 (patch)
tree59c2e340a9902a6ca8b694b5e53fdcd5bcf3c291 /result_collection_api
parent8ccd7161e5d49fc40ed2600d0b3ccce05148a402 (diff)
using ProjectUpdateRequest when update projects record in testAPI
ProjectCreateRequest -> ProjectUpdateRequest JIRA: FUNCTEST-344 Change-Id: I714bef8bd6c2e98b82dfd37ee71dea56967e8552 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
Diffstat (limited to 'result_collection_api')
-rw-r--r--result_collection_api/opnfv_testapi/tests/unit/test_project.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/result_collection_api/opnfv_testapi/tests/unit/test_project.py b/result_collection_api/opnfv_testapi/tests/unit/test_project.py
index d473060..327ddf7 100644
--- a/result_collection_api/opnfv_testapi/tests/unit/test_project.py
+++ b/result_collection_api/opnfv_testapi/tests/unit/test_project.py
@@ -10,7 +10,7 @@ import unittest
from test_base import TestBase
from opnfv_testapi.resources.project_models import ProjectCreateRequest, \
- Project, Projects
+ Project, Projects, ProjectUpdateRequest
from opnfv_testapi.common.constants import HTTP_OK, HTTP_BAD_REQUEST, \
HTTP_FORBIDDEN, HTTP_NOT_FOUND
@@ -112,7 +112,7 @@ class TestProjectUpdate(TestProjectBase):
code, body = self.get(self.req_d.name)
_id = body._id
- req = ProjectCreateRequest('newName', 'new description')
+ req = ProjectUpdateRequest('newName', 'new description')
code, body = self.update(req, self.req_d.name)
self.assertEqual(code, HTTP_OK)
self.assertEqual(_id, body._id)