坑:pytest 运行报错unknown hook 'pytest_namespace' in plugin
右键运行pytestrun时报错,原因是pytest版本过高导致的。有时候会遇到在自己本机没问题,拉取服务器代码下来后就出问题了,所以把pytest版本改低就可以,亲测有效,希望对你有帮助完整报错信息如下:plugins:allure-adaptor-1.7.10,forked-1.0.2,html-1.20.0,metadata-1.8.0,xdist-1.29.0collected17item