Commit 65afba06 authored by liguangyu06's avatar liguangyu06
Browse files

用例优化

parent 18e546b7
......@@ -51,7 +51,7 @@ result = requests.post(url, json=request_body, headers=headers)
api_time = float(result.elapsed.total_seconds())
result = json.loads(result.content)
if result["success"]:
if result["data"]["success"]:
# 将接口响应时间添加至result
result["api_time"] = api_time
# 获取预期结果
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment