如何删除PyCharm中的pytest --no-header --no-summary -q参数?

nbnkbykc  于 2022-11-08  发布在  PyCharm
关注(0)|答案(1)|浏览(912)

我看到运行默认设置pytest配置的参数如下:

Launching pytest with arguments payments/tests/test_edd_countries.py --no-header --no-summary -q in payments/tests

我想特别删除所有这些参数:

--no-header --no-summary -q

如果Edit Configurations中的Runtime configuration甚至没有显示它们,如何实现这一点?

4nkexdtk

4nkexdtk1#

参数--no-header --no-summary -q被添加为IDE设置(它们未在 * 运行配置 * 中设置)。
可以通过转到File>Settings>Advanced Settings>Python并选中选项Pytest: do not add "--no-header --no-summary -q"来配置它们,如屏幕截图所示:

相关问题