get_podcast, get_episode
This commit is contained in:
parent
650bc24d68
commit
a3e4c26c8a
14 changed files with 311 additions and 30 deletions
21
tests/mixins/test_podcasts.py
Normal file
21
tests/mixins/test_podcasts.py
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
class TestPodcasts:
|
||||
def test_get_podcast(self, yt, yt_brand):
|
||||
podcast_id = "PLxq_lXOUlvQDgCVFj9L79kqJybW0k6OaB" # Think Fast, Talk Smart: The Podcast
|
||||
|
||||
results = yt.get_podcast(podcast_id)
|
||||
assert len(results["episodes"]) == 100
|
||||
assert not results["saved"]
|
||||
|
||||
results = yt_brand.get_podcast(podcast_id, limit=None)
|
||||
assert len(results["episodes"]) > 100
|
||||
assert results["saved"]
|
||||
|
||||
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)
|
||||
assert len(result["description"]) == 50
|
||||
assert not result["saved"]
|
||||
assert result["playlistId"] is not None
|
||||
|
||||
result = yt_brand.get_episode(podcast_id)
|
||||
assert result["saved"]
|
||||
Loading…
Reference in a new issue