search: raise Exception when filter is set for uploads search (closes #285)
This commit is contained in:
parent
b3e233e75c
commit
fbb26dde94
2 changed files with 13 additions and 0 deletions
|
|
@ -69,6 +69,12 @@ class TestYTMusic(unittest.TestCase):
|
|||
self.assertGreater(len(results), 5)
|
||||
|
||||
def test_search_uploads(self):
|
||||
self.assertRaises(Exception,
|
||||
self.yt.search,
|
||||
'audiomachine',
|
||||
filter="songs",
|
||||
scope='uploads',
|
||||
limit=40)
|
||||
results = self.yt_auth.search('audiomachine', scope='uploads', limit=40)
|
||||
self.assertGreater(len(results), 20)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue