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

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

if __name__ == '__main__':
    entrypoint()
Ejemplo n.º 7
0
if __name__ == '__main__':
    from bonobo.commands import entrypoint
    import sys

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