get_charts: fix index errors on authorized song chart missing
This commit is contained in:
parent
b9be59de50
commit
b2c078df63
2 changed files with 8 additions and 3 deletions
|
|
@ -284,7 +284,8 @@ class TestYTMusic(unittest.TestCase):
|
|||
|
||||
def test_get_charts(self):
|
||||
charts = self.yt_oauth.get_charts()
|
||||
self.assertEqual(len(charts), 4)
|
||||
# songs section appears to be removed currently (US)
|
||||
self.assertGreaterEqual(len(charts), 3)
|
||||
charts = self.yt.get_charts(country="US")
|
||||
self.assertEqual(len(charts), 5)
|
||||
charts = self.yt.get_charts(country="BE")
|
||||
|
|
|
|||
Loading…
Reference in a new issue