2022年5月20日

pytest_terminal_summary重写收集测试报告并发送邮件,报错"Argument(s) {'Config'} are declared in the hookimpl but can not be found in the hookspec"

摘要: 步骤: 1、conftest.py文件,重写pytest_terminal_summary(terminalreporter, exitstatus, config) 2、run执行pytest.main(),启动报错,提示填入的config,在hookspec找不到 错误提示如下: pytest_ 阅读全文

posted @ 2022-05-20 09:47 刚刚好1 阅读(867) 评论(0) 推荐(0) 编辑

导航