From 89000db16c3129af501c382d7ea1422af2f89b49 Mon Sep 17 00:00:00 2001 From: zy7y <7631909+zy7y@user.noreply.gitee.com> Date: Thu, 31 Dec 2020 11:37:11 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dfile=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=B5=81=E5=AF=B9=E8=B1=A1=E6=97=A0=E6=B3=95=E5=BA=8F=E5=88=97?= =?UTF-8?q?=E5=8C=96=E5=AF=BC=E8=87=B4=E5=87=BA=E7=8E=B0=E7=9A=84bug?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=B8=8A=E4=BC=A0=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E7=9A=84=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/base_requests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/base_requests.py b/api/base_requests.py index 1cfd2da..85abd65 100644 --- a/api/base_requests.py +++ b/api/base_requests.py @@ -41,7 +41,7 @@ class BaseRequest(object): data = DataProcess.handle_data(data) allure_step('请求参数', data) file = DataProcess.handler_files(file_obj) - allure_step('上传文件', file) + allure_step('上传文件', file_obj) # 发送请求 res = cls.send_api(url, method, parametric_key, header, data, file) allure_step('响应耗时(s)', res.elapsed.total_seconds()) @@ -77,7 +77,7 @@ class BaseRequest(object): else: raise ValueError( '可选关键字为:get/delete/head/options/请求使用params, post/put/patch请求可使用json(application/json)/data') - logger.info(f'\n请求地址:{url}\n请求方法:{method}\n请求头:{header}\n请求参数:{data}\n响应数据:{res.json()}') + logger.info(f'\n请求地址:{url}\n请求方法:{method}\n请求头:{header}\n请求参数:{data}\n上传文件:{file}\n响应数据:{res.json()}') return res