feat: update
This commit is contained in:
@@ -223,6 +223,19 @@ def _validate_tasks(path: Path, ship_id: Any, kind: Any) -> list[str]:
|
||||
verification = row.get("verification")
|
||||
if not isinstance(verification, list) or not verification:
|
||||
_issue(issues, f"{prefix}.verification 必须是非空列表")
|
||||
test_plan = row.get("testPlan")
|
||||
if test_plan is not None:
|
||||
plan = _mapping(test_plan, f"{prefix}.testPlan", issues)
|
||||
if plan is not None:
|
||||
policy = plan.get("policy")
|
||||
if policy not in {"required", "not_applicable"}:
|
||||
_issue(
|
||||
issues,
|
||||
f"{prefix}.testPlan.policy 无效: {policy!r}(required|not_applicable)",
|
||||
)
|
||||
manifest = plan.get("manifest")
|
||||
if not isinstance(manifest, str) or not manifest.strip():
|
||||
_issue(issues, f"{prefix}.testPlan.manifest 不能为空")
|
||||
for i, item in enumerate(tasks):
|
||||
if not isinstance(item, dict):
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user