コード例 #1
0
def test_run(capsys):
    entrypoint(['run', '--quiet', get_examples_path('types/strings.py')])
    out, err = capsys.readouterr()
    out = out.split('\n')
    assert out[0].startswith('Foo ')
    assert out[1].startswith('Bar ')
    assert out[2].startswith('Baz ')
コード例 #2
0
def test_no_command(capsys):
    with pytest.raises(SystemExit):
        entrypoint([])
    _, err = capsys.readouterr()
    assert 'error: the following arguments are required: command' in err
コード例 #3
0
ファイル: __main__.py プロジェクト: zkan/bonobo
if __name__ == "__main__":
    from bonobo.commands import entrypoint
    import sys

    entrypoint(["examples"] + sys.argv[1:])
コード例 #4
0
def runner_entrypoint(*args):
    """ Run bonobo using the python command entrypoint directly (bonobo.commands.entrypoint). """
    return entrypoint(list(args))
コード例 #5
0
ファイル: testing.py プロジェクト: a-musing-moose/bonobo
def runner_entrypoint(args):
    """ Run bonobo using the python command entrypoint directly (bonobo.commands.entrypoint). """
    return entrypoint(args)
コード例 #6
0
from bonobo.commands import entrypoint

if __name__ == '__main__':
    entrypoint()
コード例 #7
0
ファイル: __main__.py プロジェクト: zhenyu-captain/bonobo
if __name__ == '__main__':
    from bonobo.commands import entrypoint
    import sys

    entrypoint(['examples'] + sys.argv[1:])