修改用例格式由字典改为列表,并增加用例字段必填校验

This commit is contained in:
floraachy
2023-08-15 14:22:37 +08:00
parent c19193bcc6
commit 0a881116a3
12 changed files with 90 additions and 74 deletions
+2 -2
View File
@@ -76,7 +76,7 @@ class TestCaseEnum(Enum):
"""
测试用例中字段
"""
FEATURE = ("feature", False)
ID = ("id", True)
TITLE = ("title", True)
URL = ("url", True)
SEVERITY = ("severity", False)
@@ -96,7 +96,7 @@ class TestCase(BaseModel):
"""
测试用例各数据格式要求
"""
feature: Union[None, Text] = None
id: Union[None, Text]
title: Text
severity: Text
url: Text