ytmusicapi/tests/mixins/test_charts.py
Solomon f6295e50be
fix get_charts, add get_explore (#797)
* get_charts: move to a new class

* get_charts: update

* get_explore: init
2025-07-31 19:20:51 +02:00

8 lines
356 B
Python

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