作者:裴潇艳 | 来源:互联网 | 2023-10-11 05:50
本文由编程笔记#小编为大家整理,主要介绍了pytest+allure结合执行命令出错(TypeError:requiredfield"posonlyargs"missing
本文由编程笔记#小编为大家整理,主要介绍了pytest+allure结合执行命令出错(TypeError: required field "posonlyargs" missing from arguments)相关的知识,希望对你有一定的参考价值。
如果出现的错误如下截图:
TypeError: required field "posonlyargs" missing from arguments
解决方法:把关于allure的包文件进行卸载
1.可以在File-Setting-Project:Project Interpreter 把关于allure的包进行卸载
2.可以参考这个链接进行再安装:http://www.51testing.com/html/17/n-4464317.html
3.如果安装后,执行命令(例如:pytest -s -q --alluredir allure-xml)出现错误,可参考链接进行解决:https://www.pythonf.cn/read/21629