projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a69bee4
)
[test_youtube_lists] Fix TestYoutubeLists.test_youtube_course
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 31 Jan 2016 11:49:54 +0000
(19:49 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 31 Jan 2016 12:12:43 +0000
(20:12 +0800)
Youtube entries are now generators
test/test_youtube_lists.py
patch
|
blob
|
history
diff --git
a/test/test_youtube_lists.py
b/test/test_youtube_lists.py
index 26aadb34f00e6961c2521ceaa8be1a51fe359a8d..47df0f348d862e4ab455058d00321636123db807 100644
(file)
--- a/
test/test_youtube_lists.py
+++ b/
test/test_youtube_lists.py
@@
-34,7
+34,7
@@
class TestYoutubeLists(unittest.TestCase):
ie = YoutubePlaylistIE(dl)
# TODO find a > 100 (paginating?) videos course
result = ie.extract('https://www.youtube.com/course?list=ECUl4u3cNGP61MdtwGTqZA0MreSaDybji8')
- entries =
result['entries']
+ entries =
list(result['entries'])
self.assertEqual(YoutubeIE().extract_id(entries[0]['url']), 'j9WZyLZCBzs')
self.assertEqual(len(entries), 25)
self.assertEqual(YoutubeIE().extract_id(entries[-1]['url']), 'rYefUsYuEp0')