def METHOD_NAME(caplog, requests_mock, new_proposal) -> None:
    caplog.set_level(logging.WARNING)
    requests_mock.get(
        'https://www.googleapis.com/youtube/v3/videos',
        exc=requests.exceptions.RequestException,
    )
    new_proposal.video_url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
    assert new_proposal.views.video is not None
    assert "YouTube API request error: RequestException()" in caplog.text