1. 运行时提示:
pytest - Windows fatal exception: code 0x8001010d
可能是pytest或者插件版本不兼容导致的,不要下载最新的,或者将import导入的包换个位置
或者:
addopts = -vs -p no:faulthandler --html ../report/re.html
2. 接口请求提示:
Could not write JSON: !Json syntax error nearby [row:1,col:1 char \'g\'], reason: \'Unexpect String = goodsCode,applyCount,goodsCode,applyCount\'; nested exception is com.fasterxml.jackson.databind.JsonMappingException:
请求体中的参数值格式不能是list, 修改成str就可以了
3. 运行时警告: 加上: -p no:warnings忽略警告
DeprecationWarning: invalid escape sequence \d
addopts = -vs -p no:warnings --html ../report/re.html