From d5287e58121b7b865d2cdc1ff85faf612ef5b799 Mon Sep 17 00:00:00 2001 From: sigma67 Date: Tue, 21 Jul 2020 23:31:21 +0200 Subject: [PATCH] Add additional tests for get_artist edge cases --- tests/test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test.py b/tests/test.py index a578ae9..5605513 100644 --- a/tests/test.py +++ b/tests/test.py @@ -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")