update tools/data_process.py.

修改sql结果,在allure上展示形式
This commit is contained in:
zy7y 2021-04-23 18:07:16 +08:00 committed by Gitee
parent 9d3eeaa792
commit 7a21916091
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ class DataProcess:
if sql is not None:
# 查后置sql
result = db.fetch_one(sql)
allure_step('sql执行结果', {"sql_result": result})
allure_step('sql执行结果', result)
logger.info(f'结果:{result}')
if result is not None:
# 将查询结果添加到响应字典里面,作用在,接口响应的内容某个字段 直接和数据库某个字段比对,在预期结果中