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

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
@@ -24,10 +24,7 @@ from case_utils.allure_handle import allure_title
# 读取用例数据
yaml_data = YamlHandle(filename=os.path.join(DATA_DIR, "gitlink", "login_demo.yaml")).read_yaml
case_common = yaml_data["case_common"]
cases = []
for k, v in yaml_data.items():
if k != "case_common":
cases.append(v)
cases = yaml_data["case_info"]
@allure.epic(case_common["allure_epic"])