diff options
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) |