fix get_charts, add get_explore (#797)
* get_charts: move to a new class * get_charts: update * get_explore: init
This commit is contained in:
parent
7f42e8d5f0
commit
f6295e50be
6 changed files with 247 additions and 128 deletions
8
tests/mixins/test_charts.py
Normal file
8
tests/mixins/test_charts.py
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
class TestCharts:
|
||||
def test_get_charts(self, yt, yt_oauth):
|
||||
charts = yt_oauth.get_charts()
|
||||
assert len(charts) >= 3
|
||||
charts = yt.get_charts(country="US")
|
||||
assert len(charts) == 4 # countries, videos, genres, artists
|
||||
charts = yt.get_charts(country="BE")
|
||||
assert len(charts) == 3 # countries, videos, artists
|
||||
Loading…
Reference in a new issue