gpt4 book ai didi

pytest-html with PyCharm - Debug fails but Run works(带有PyCharm-Debug的pytest-html失败,但运行正常)

转载 作者:bug小助手 更新时间:2023-10-25 19:39:10 28 4
gpt4 key购买 nike



Getting error ModuleNotFoundError: No module named 'pytest_html.plugin'; 'pytest_html' is not a package only during debug but running the test case works.
I printed sys.executable which during run and debug prints the same.
uninstalling pytest_html and commenting lines reg pytest_html_results_table_row works fine.
Please help to resolve this.

获取错误模块NotFoundError:没有名为‘pytest_html.plugin’的模块;‘pytest_html’不是仅在调试期间才是包,但运行测试用例是有效的。我打印了sys.executable,它在运行和调试期间打印相同的内容。卸载pytest_html并注释代码行reg pytest_html_Results_table_row可以正常工作。请帮忙解决这个问题。


更多回答

Please share a minimal reproducible example of your code and all relevant versions (packages, Python, OS). Thanks.

请分享你的代码和所有相关版本(包,Python,OS)的最小可复制示例。谢谢.

优秀答案推荐
更多回答

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com