def test_youtube_channel_details_raises_error(): with pytest.raises(Exception): youtube_channel_details(key='WRONG KEY', channel_ids='wrong ID')