Commit f4921951 authored by liguangyu06's avatar liguangyu06
Browse files

用例优化

parent 1c7325bb
......@@ -34,10 +34,8 @@ request_body = commonFuc().get_business_data(module, "payload5")
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.json()["success"]:
result = json.loads(result.content)
# 将接口响应时间添加至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