def test_run_pre_prompt_shell_hook(remove_tmp_repo_dir) -> None:
    """Verify pre_prompt.sh runs and creates a copy of cookiecutter.json."""
    new_repo_dir = hooks.run_pre_prompt_hook(repo_dir='tests/test-pyshellhooks/')
    assert new_repo_dir.exists()  # type: ignore[union-attr]
    bkp_config = new_repo_dir / "_cookiecutter.json"  # type: ignore[operator]
    assert bkp_config.exists()
    remove_tmp_repo_dir(new_repo_dir)
Verify pre_prompt.sh runs and creates a copy of cookiecutter.json.
tests/test_pre_prompt_hooks.py