Commit 602ed6bd authored by liguangyu06's avatar liguangyu06
Browse files

优化

parent 3c768ecc
......@@ -34,6 +34,7 @@ result = requests.post(url, json=request_body, headers=headers)
# 获取接口响应时间
api_time = result.elapsed.total_seconds()
result = json.loads(result.content)
# print(result)
result["api_time"] = api_time
# print(result)
if result["success"]:
......@@ -45,6 +46,6 @@ if result["success"]:
else:
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict_1")
print(check_dict)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
\ No newline at end of file
......@@ -38,6 +38,6 @@ result = json.loads(result.content)
result["api_time"] = api_time
# 获取预期结果
check_dict = commonFuc().get_business_data(module, "checkDict2")
print(check_dict)
# print(check_dict)
# 断言实际结果中是否包含预期结果的内容
commonFuc().check_result(check_dict, result)
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