Beispiel #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 ')
Beispiel #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
Beispiel #3
0
if __name__ == "__main__":
    from bonobo.commands import entrypoint
    import sys

    entrypoint(["examples"] + sys.argv[1:])
Beispiel #4
0
def runner_entrypoint(*args):
    """ Run bonobo using the python command entrypoint directly (bonobo.commands.entrypoint). """
    return entrypoint(list(args))
Beispiel #5
0
def runner_entrypoint(args):
    """ Run bonobo using the python command entrypoint directly (bonobo.commands.entrypoint). """
    return entrypoint(args)
Beispiel #6
0
from bonobo.commands import entrypoint

if __name__ == '__main__':
    entrypoint()
Beispiel #7
0
if __name__ == '__main__':
    from bonobo.commands import entrypoint
    import sys

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