diff options
author | SerenaFeng <feng.xiaowei@zte.com.cn> | 2018-01-05 14:39:12 +0800 |
---|---|---|
committer | thuva4 <tharma.thuva@gmail.com> | 2018-01-09 19:56:56 +0530 |
commit | 349609818abcf10cc94088b043f71b5c8bc504a1 (patch) | |
tree | 3a59930127379f50121c066041121a3cc96a7ff2 /testapi/opnfv_testapi/models | |
parent | 8dbe224064851d439b18ad4254e119aff7f02e30 (diff) |
Design the scenario create method
design scenario create method in modal way.
design scenario page.
Add,delete for installers,versions, projects, customs, trust
indicators and scores are implemented.
tests are not included. validations are not added.
Change-Id: I999229c00869fcd5a4efa97cb2679a08fc24b271
Signed-off-by: thuva4 <tharma.thuva@gmail.com>
Diffstat (limited to 'testapi/opnfv_testapi/models')
-rw-r--r-- | testapi/opnfv_testapi/models/testcase_models.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testapi/opnfv_testapi/models/testcase_models.py b/testapi/opnfv_testapi/models/testcase_models.py index 1a55cf7..96195b2 100644 --- a/testapi/opnfv_testapi/models/testcase_models.py +++ b/testapi/opnfv_testapi/models/testcase_models.py @@ -51,8 +51,10 @@ class TestcaseUpdateRequest(TestcaseCreateRequest): @swagger.model() class Testcase(TestcaseCreateRequest): - def __init__(self, _id=None, **kwargs): - self._id = None + def __init__(self, **kwargs): + self._id = kwargs.pop('_id', '') + self.project_name = kwargs.pop('project_name', '') + self.creation_date = kwargs.pop('creation_date', '') super(Testcase, self).__init__(**kwargs) |