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

    repo_file = tmp_path.joinpath('repo.zip')
    repo_file.write_text('this is zipfile content')

    deleted = prompt.prompt_and_delete(str(repo_file))

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