def test_comments_list(): result = yt.comments_list(key=youtube_key, part='snippet', id='UgxKMCc9z4iE7LNW2Hh4AaABAg') assert {'queryTime', 'param_part'}.issubset(result.columns)
def test_comments_list_raises(): with pytest.raises(ValueError): yt.comments_list(key=youtube_key, part='wrong_part') with pytest.raises(ValueError): yt.comments_list(key=youtube_key, part='snippet')