test restructuring via pytest
This commit is contained in:
parent
d1ac87ce6e
commit
69dd4a9f2f
19 changed files with 858 additions and 619 deletions
17
tests/mixins/test_explore.py
Normal file
17
tests/mixins/test_explore.py
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
class TestExplore:
|
||||
def test_get_mood_playlists(self, yt):
|
||||
categories = yt.get_mood_categories()
|
||||
assert len(list(categories)) > 0
|
||||
cat = list(categories)[0]
|
||||
assert len(categories[cat]) > 0
|
||||
playlists = yt.get_mood_playlists(categories[cat][0]["params"])
|
||||
assert len(playlists) > 0
|
||||
|
||||
def test_get_charts(self, yt, yt_oauth):
|
||||
charts = yt_oauth.get_charts()
|
||||
# songs section appears to be removed currently (US)
|
||||
assert len(charts) >= 3
|
||||
charts = yt.get_charts(country="US")
|
||||
assert len(charts) == 5
|
||||
charts = yt.get_charts(country="BE")
|
||||
assert len(charts) == 4
|
||||
Loading…
Reference in a new issue