Beispiel #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)
Beispiel #2
0
def test_version_command(capsys):
    cli.main(["version"])
    captured = capsys.readouterr()
    assert captured.out == EXPECTED_VERSION
    assert not captured.err
Beispiel #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)