def test_unzip_protected_local_file_user_password_with_noinput(
    mocker, clone_dir
) -> None:
    """Can't unpack a password-protected repo in no_input mode."""
    mocker.patch(
        'cookiecutter.zipfile.prompt_and_delete', return_value=True, autospec=True
    )

    with pytest.raises(InvalidZipRepository):
        zipfile.unzip(
            'tests/files/protected-fake-repo-tmpl.zip',
            is_url=False,
            clone_to_dir=str(clone_dir),
            no_input=True,
        )
Can't unpack a password-protected repo in no_input mode.
tests/zipfile/test_unzip.py