projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8514f6
)
[cspan] Do not test number of playlist entries
author
Philipp Hagemeister
<phihag@phihag.de>
Fri, 4 Apr 2014 21:16:20 +0000
(23:16 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Fri, 4 Apr 2014 21:16:22 +0000
(23:16 +0200)
Apparently, CSpan switches between single-file and multiple-file results. Either one is fine as long as we get the full four hours.
test/test_playlists.py
patch
|
blob
|
history
diff --git
a/test/test_playlists.py
b/test/test_playlists.py
index 5fb679aa189269821c6f2a429be3c6f15bbc3ce9..75c6a6bbbf14d0e939a375a9500006ba46bac9b4 100644
(file)
--- a/
test/test_playlists.py
+++ b/
test/test_playlists.py
@@
-324,7
+324,6
@@
class TestPlaylists(unittest.TestCase):
self.assertEqual(result['id'], '342759')
self.assertEqual(
result['title'], 'General Motors Ignition Switch Recall')
- self.assertEqual(len(result['entries']), 9)
whole_duration = sum(e['duration'] for e in result['entries'])
self.assertEqual(whole_duration, 14855)