add brand account setup script (#520)
This commit is contained in:
parent
b2113db0e1
commit
170eea358d
15 changed files with 309 additions and 262 deletions
|
|
@ -89,8 +89,10 @@ class TestBrowsing:
|
|||
def test_get_album_other_versions(self, yt):
|
||||
# Eminem - Curtain Call: The Hits (Explicit Variant)
|
||||
album = yt.get_album("MPREb_LQCAymzbaKJ")
|
||||
assert len(variants := album["other_versions"]) >= 1 # appears to be regional
|
||||
assert (variant := variants[0])["type"] == "Album"
|
||||
variants = album["other_versions"]
|
||||
assert len(variants) >= 1 # appears to be regional
|
||||
variant = variants[0]
|
||||
assert variant["type"] == "Album"
|
||||
assert len(variant["artists"]) == 1
|
||||
assert variant["artists"][0] == {"name": "Eminem", "id": "UCedvOgsKFzcK3hA5taf3KoQ"}
|
||||
assert variant["audioPlaylistId"] is not None
|
||||
|
|
@ -99,7 +101,8 @@ class TestBrowsing:
|
|||
# Cassö & RAYE - Prada
|
||||
album = yt.get_album("MPREb_of3qfisa0yU")
|
||||
assert not album["isExplicit"]
|
||||
assert (variant := album["other_versions"][0])["type"] == "Single"
|
||||
variant = album["other_versions"][0]
|
||||
assert variant["type"] == "Single"
|
||||
assert variant["isExplicit"]
|
||||
assert len(variant["artists"]) == 3
|
||||
assert variant["artists"][0]["id"] == "UCGWMNnI1Ky5bMcRlr73Cj2Q"
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
class TestPodcasts:
|
||||
def test_get_podcast(self, yt, yt_brand):
|
||||
podcast_id = "PLxq_lXOUlvQDgCVFj9L79kqJybW0k6OaB" # Think Fast, Talk Smart: The Podcast
|
||||
|
||||
def test_get_podcast(self, config, yt, yt_brand):
|
||||
podcast_id = config["podcasts"]["podcast_id"]
|
||||
results = yt.get_podcast(podcast_id)
|
||||
assert len(results["episodes"]) == 100
|
||||
assert not results["saved"]
|
||||
|
|
@ -16,14 +15,14 @@ class TestPodcasts:
|
|||
results = yt.get_podcast(result["browseId"])
|
||||
assert len(results) > 0
|
||||
|
||||
def test_get_episode(self, yt, yt_brand):
|
||||
podcast_id = "KNkyHCLOr1o" # 124. Making Meetings Meaningful, Pt. 1: How to Structure
|
||||
result = yt.get_episode(podcast_id)
|
||||
def test_get_episode(self, config, yt, yt_brand):
|
||||
episode_id = config["podcasts"]["episode_id"]
|
||||
result = yt.get_episode(episode_id)
|
||||
assert len(result["description"]) == 50
|
||||
assert not result["saved"]
|
||||
assert result["playlistId"] is not None
|
||||
|
||||
result = yt_brand.get_episode(podcast_id)
|
||||
result = yt_brand.get_episode(episode_id)
|
||||
assert result["saved"]
|
||||
|
||||
def test_many_episodes(self, yt):
|
||||
|
|
|
|||
Loading…
Reference in a new issue