Add additional tests for get_artist edge cases
This commit is contained in:
parent
10ef054b2d
commit
d5287e5812
1 changed files with 5 additions and 0 deletions
|
|
@ -42,6 +42,11 @@ class TestYTMusic(unittest.TestCase):
|
|||
def test_get_artist(self):
|
||||
results = youtube.get_artist("UCmMUZbaYdNH0bEd1PAlAqsA")
|
||||
self.assertEqual(len(results), 11)
|
||||
results = youtube.get_artist("UCLZ7tlKC06ResyDmEStSrOw") # no album year
|
||||
self.assertGreaterEqual(len(results), 10)
|
||||
results = youtube.get_artist(
|
||||
"UCDAPd3S5CBIEKXn-tvy57Lg") # no thumbnail, albums, subscribe count
|
||||
self.assertGreaterEqual(len(results), 9)
|
||||
|
||||
def test_get_artist_albums(self):
|
||||
artist = youtube.get_artist("UCAeLFBCQS7FvI8PvBrWvSBg")
|
||||
|
|
|
|||
Loading…
Reference in a new issue