def test_parseargs_help(args, capsys): from venv_update import __doc__ as HELP_OUTPUT with pytest.raises(SystemExit) as excinfo: assert venv_update.parseargs(args) out, err = capsys.readouterr() assert err == '' assert out == HELP_OUTPUT assert excinfo.value.code == 0
def test_parseargs(args, expected): assert venv_update.parseargs(args) == expected