From 602ed6bd76ea5f251229bb142dc0602e87f3e86f Mon Sep 17 00:00:00 2001 From: liguangyu06 <1666071293@qq.com> Date: Mon, 5 Feb 2024 10:27:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...234\200\346\261\202\345\215\225\345\210\233\345\273\272.py" | 3 ++- ...215\225\350\215\211\347\250\277\345\210\233\345\273\272.py" | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git "a/air_case/cmdc_demand_create_pc/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.air/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.py" "b/air_case/cmdc_demand_create_pc/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.air/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.py" index 33243f18..1f3d238e 100644 --- "a/air_case/cmdc_demand_create_pc/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.air/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.py" +++ "b/air_case/cmdc_demand_create_pc/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.air/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\345\210\233\345\273\272.py" @@ -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 diff --git "a/air_case/cmdc_demand_create_pc/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\350\215\211\347\250\277\345\210\233\345\273\272.air/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\350\215\211\347\250\277\345\210\233\345\273\272.py" "b/air_case/cmdc_demand_create_pc/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\350\215\211\347\250\277\345\210\233\345\273\272.air/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\350\215\211\347\250\277\345\210\233\345\273\272.py" index a76f1bb3..558ae07f 100644 --- "a/air_case/cmdc_demand_create_pc/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\350\215\211\347\250\277\345\210\233\345\273\272.air/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\350\215\211\347\250\277\345\210\233\345\273\272.py" +++ "b/air_case/cmdc_demand_create_pc/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\350\215\211\347\250\277\345\210\233\345\273\272.air/\345\244\232\351\207\207\345\225\206\345\237\216\351\234\200\346\261\202\345\215\225\350\215\211\347\250\277\345\210\233\345\273\272.py" @@ -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) -- GitLab