... is not None: metafunc.parametrize('name', [option_value]). 然後,您可以使用命令行參數從命令行運行: pytest -s tests/my_test_module.py --name abc.
確定! 回上一頁