mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-24 19:22:06 +00:00
Fix TestYoutubeLists.test_youtube_user
This commit is contained in:
parent
9a6f4429a0
commit
2c6945be30
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import socket
|
||||||
import os
|
import os
|
||||||
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||||
|
|
||||||
from youtube_dl.InfoExtractors import YoutubePlaylistIE
|
from youtube_dl.InfoExtractors import YoutubeUserIE,YoutubePlaylistIE
|
||||||
from youtube_dl.utils import *
|
from youtube_dl.utils import *
|
||||||
|
|
||||||
# General configuration (from __init__, not very elegant...)
|
# General configuration (from __init__, not very elegant...)
|
||||||
|
@ -62,7 +62,7 @@ class TestYoutubeLists(unittest.TestCase):
|
||||||
|
|
||||||
def test_youtube_user(self):
|
def test_youtube_user(self):
|
||||||
DL = FakeDownloader()
|
DL = FakeDownloader()
|
||||||
IE = YoutubePlaylistIE(DL)
|
IE = YoutubeUserIE(DL)
|
||||||
IE.extract('https://www.youtube.com/user/TheLinuxFoundation')
|
IE.extract('https://www.youtube.com/user/TheLinuxFoundation')
|
||||||
self.assertTrue(len(DL.result) >= 320)
|
self.assertTrue(len(DL.result) >= 320)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue