コード例 #1
0
ファイル: base.py プロジェクト: chiragmatkar/testplan
class BaseSchema(Schema):
    utc_time = fields.LocalDateTime()
    machine_time = custom_fields.UTCDateTime()
    type = custom_fields.ClassName()
    meta_type = fields.String()
    description = custom_fields.Unicode()
    line_no = fields.Integer()
    category = fields.String()
    flag = fields.String()

    def load(self, *args, **kwargs):
        raise NotImplementedError("Only serialization is supported.")
コード例 #2
0
class GroupSchema(Schema):
    type = custom_fields.ClassName()
    passed = fields.Boolean()
    meta_type = fields.String()
    description = custom_fields.Unicode(allow_none=True)
    entries = GenericEntryList(allow_none=True)