improve coverage
This commit is contained in:
parent
69dd4a9f2f
commit
d4bea93414
6 changed files with 18 additions and 27 deletions
|
|
@ -37,11 +37,15 @@ class TestBrowsing:
|
|||
results = yt.get_user("UC44hbeRoCZVVMVg5z0FfIww")
|
||||
assert len(results) == 3
|
||||
|
||||
def test_get_user_playlists(self, yt_auth):
|
||||
results = yt_auth.get_user("UCPVhZsC2od1xjGhgEc2NEPQ") # Vevo playlists
|
||||
results = yt_auth.get_user_playlists("UCPVhZsC2od1xjGhgEc2NEPQ", results["playlists"]["params"])
|
||||
def test_get_user_playlists(self, yt, yt_auth):
|
||||
channel = "UCPVhZsC2od1xjGhgEc2NEPQ" # Vevo playlists
|
||||
user = yt_auth.get_user(channel)
|
||||
results = yt_auth.get_user_playlists(channel, user["playlists"]["params"])
|
||||
assert len(results) > 100
|
||||
|
||||
results_empty = yt.get_user_playlists(channel, user["playlists"]["params"])
|
||||
assert len(results_empty) == 0
|
||||
|
||||
def test_get_album_browse_id(self, yt, sample_album):
|
||||
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
|
||||
browse_id = yt.get_album_browse_id("OLAK5uy_nMr9h2VlS-2PULNz3M3XVXQj_P3C2bqaY")
|
||||
|
|
|
|||
Loading…
Reference in a new issue