def test_cli_error_on_existing_output_directory(cli_runner) -> None:
    """Test cli invocation without `overwrite-if-exists` fail if dir exist."""
    result = cli_runner('tests/fake-repo-pre/', '--no-input')
    assert result.exit_code != 0
    expected_error_msg = 'Error: "fake-project" directory already exists\n'
    assert result.output == expected_error_msg
Test cli invocation without `overwrite-if-exists` fail if dir exist.
tests/test_cli.py