pytest是否有命令行标志使其忽略pytest.ini文件?我看到了禁用conftest.py的--noconftest标志,但pytest --help似乎没有禁用pytest.ini的任何东西。
发布于 2020-06-20 05:13:15
目前,pytest没有提供命令行选项来完全忽略配置。作为解决方法,您可以重命名pytest.ini或将空设备作为配置源进行传递:
$ pytest -c /dev/null(或
$ pytest -c NUL在Windows上)。
https://stackoverflow.com/questions/62460410
复制相似问题