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