Exemplo n.º 1
0
def main(*pargs):
    """Converts arguments, prints them and the cwd, then calls emanate's main"""
    args = [x if isinstance(x, str) else str(x) for x in pargs]
    print('cwd:', Path.cwd())
    print('emanate', *args)
    cli.main(args)
Exemplo n.º 2
0
def test_version_command(capsys):
    cli.main(["version"])
    captured = capsys.readouterr()
    assert captured.out == EXPECTED_VERSION
    assert not captured.err
Exemplo n.º 3
0
def main(*pargs):
    """Converts arguments, prints them and the cwd, then calls emanate's main"""
    args = [x if isinstance(x, str) else str(x) for x in pargs]
    print('cwd:', Path.cwd())
    print('emanate', *args)
    cli.main(args)