get_podcast, get_episode: improve edge cases
This commit is contained in:
parent
be7a6090b0
commit
47b27f0f0e
2 changed files with 19 additions and 4 deletions
|
|
@ -10,6 +10,12 @@ class TestPodcasts:
|
|||
assert len(results["episodes"]) > 100
|
||||
assert results["saved"]
|
||||
|
||||
def test_many_podcasts(self, yt):
|
||||
results = yt.search("podcast", filter="podcasts")
|
||||
for result in results:
|
||||
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)
|
||||
|
|
@ -19,3 +25,9 @@ class TestPodcasts:
|
|||
|
||||
result = yt_brand.get_episode(podcast_id)
|
||||
assert result["saved"]
|
||||
|
||||
def test_many_episodes(self, yt):
|
||||
results = yt.search("episode", filter="episodes")
|
||||
for result in results:
|
||||
result = yt.get_episode(result["videoId"])
|
||||
assert len(result["description"].text) > 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue