pytest-html报错PytestDeprecationWarning:The’junit_famiLy’defauLtvaluewillchangeto’xunit2’inpytest6.'junit_family=x unit 1’to your pytest.ini file to keep the current format in future versions of py test and siLence this warning
在test目录下创建pytest.ini文件。
文件中写
[pytest]
junit_family=legacy