Use click.testing.CliRunner instead of subprocess
The click package has nice API for testing CLI applications via click.testing.CliRunner
(see here).
Thus, snippets like
check_call(f"git slatex clone {project.url} {args}", shell=True)
should be in the future
runner = CliRunner()
result = runner.invoke(cli.clone, [project.url] + [a for a in args.split(' ')])
Edited by Patrick Stöckle