我安装了 pytest 和pytest_html 后运行命令:
python test_x.py --html='/Users/hua/Desktop/img/xx.html'
警告信息:
=========warnings summary ===========================================================================
None
passing a string to pytest.main() is deprecated, pass a list of arguments instead.
Module already imported so can not be re-written: flaky
Module already imported so can not be re-written: pytest_html

-- Docs: http://doc.pytest.org/en/latest/warnings.html
但是看不懂是哪里出错了,我看网上运行命令都是>>pytest test_x.py --html='/Users/hua/Desktop/img/xx.html'
但是我这条命令运行不了,难道是这个原因?


↙↙↙阅读原文可查看相关链接,并与作者交流