retcode = testdir.pytestmain( "-h" ). assert not retcode. out, err = capsys.readouterr(). assert "--help" in out. pytest.raises(ValueError, lambda ...
確定! 回上一頁