def test_prompt_should_ask_and_rm_repo_dir(mocker, tmp_path) -> None:
    """In `prompt_and_delete()`, if the user agrees to delete/reclone the \
    repo, the repo should be deleted."""
    mock_read_user = mocker.patch(
        'cookiecutter.prompt.read_user_yes_no', return_value=True
    )
    repo_dir = Path(tmp_path, 'repo')
    repo_dir.mkdir()

    deleted = prompt.prompt_and_delete(str(repo_dir))

    assert mock_read_user.called
    assert not repo_dir.exists()
    assert deleted
In `prompt_and_delete()`, if the user agrees to delete/reclone the     repo, the repo should be deleted.
tests/test_prompt.py