def test_prompt_should_ask_and_keep_repo_on_no_reuse(mocker, tmp_path) -> None:
    """In `prompt_and_delete()`, if the user wants to keep their old \
    cloned template repo, it should not be deleted."""
    mock_read_user = mocker.patch(
        'cookiecutter.prompt.read_user_yes_no', return_value=False, autospec=True
    )
    repo_dir = Path(tmp_path, 'repo')
    repo_dir.mkdir()

    with pytest.raises(SystemExit):
        prompt.prompt_and_delete(str(repo_dir))

    assert mock_read_user.called
    assert repo_dir.exists()
In `prompt_and_delete()`, if the user wants to keep their old     cloned template repo, it should not be deleted.
tests/test_prompt.py