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:
Solomon 2025-07-31 17:20:51 +00:00 • committed by GitHub
commit f6295e50be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 247 additions and 128 deletions

View 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