生成pdf报告
This commit is contained in:
Binary file not shown.
@@ -1,3 +1,2 @@
|
||||
[
|
||||
"API应该使用正确的HTTP方法:GET用于检索,POST用于创建,PUT用于更新,DELETE用于删除"
|
||||
]
|
||||
@@ -21,6 +21,15 @@ class LLMComplianceCheckTestCase(BaseAPITestCase):
|
||||
|
||||
def validate_response(self, response_context: APIResponseContext, request_context: APIRequestContext) -> List[ValidationResult]:
|
||||
results = []
|
||||
|
||||
# 如果合规性标准列表为空,则跳过测试
|
||||
if not self.compliance_criteria:
|
||||
return [ValidationResult(
|
||||
passed=True,
|
||||
message="合规性标准列表为空,跳过LLM合规性检查。",
|
||||
details={"reason": "compliance_criteria.json is empty or contains an empty list."}
|
||||
)]
|
||||
|
||||
# 收集API所有关键信息,包括实例数据和Schema定义
|
||||
api_info = {
|
||||
# API元数据
|
||||
|
||||
Reference in New Issue
Block a user