add brand account setup script (#520)
This commit is contained in:
parent
b2113db0e1
commit
170eea358d
15 changed files with 309 additions and 262 deletions
|
|
@ -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