add coverage for bad request exception
This commit is contained in:
parent
dd5d753432
commit
207d7ad714
1 changed files with 1 additions and 0 deletions
|
|
@ -316,6 +316,7 @@ class TestYTMusic(unittest.TestCase):
|
|||
###############
|
||||
|
||||
def test_get_foreign_playlist(self):
|
||||
self.assertRaises(Exception, self.yt.get_playlist, "PLABC")
|
||||
playlist = self.yt.get_playlist(sample_playlist, limit=300, suggestions_limit=7)
|
||||
self.assertGreater(len(playlist['tracks']), 200)
|
||||
self.assertNotIn('suggestions', playlist)
|
||||
|
|
|
|||
Loading…
Reference in a new issue