示例#1
0
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
示例#2
0
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
示例#3
0
def test_parseargs(args, expected):
    assert venv_update.parseargs(args) == expected
示例#4
0
def test_parseargs(args, expected):
    assert venv_update.parseargs(args) == expected