aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2015-02-10 05:28:59 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2015-02-10 05:28:59 +0100
commit6a78740211b37cab5d20e707db9f73dca6c60049 (patch)
treecc16c8e6a2402d3bf7a6f5619e4912c415f579a9 /test
parentc0e1a415fdcd8d36d98a9fb6ff5bf9146004ddd3 (diff)
[test/test_youtube_signature] Use fake YDL
Diffstat (limited to 'test')
-rw-r--r--test/test_youtube_signature.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/test/test_youtube_signature.py b/test/test_youtube_signature.py
index 13d228cd8..09696e19a 100644
--- a/test/test_youtube_signature.py
+++ b/test/test_youtube_signature.py
@@ -8,11 +8,11 @@ import sys
import unittest
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
-
import io
import re
import string
+from test.helper import FakeYDL
from youtube_dl.extractor import YoutubeIE
from youtube_dl.compat import compat_str, compat_urlretrieve
@@ -88,7 +88,8 @@ def make_tfunc(url, stype, sig_input, expected_sig):
if not os.path.exists(fn):
compat_urlretrieve(url, fn)
- ie = YoutubeIE()
+ ydl = FakeYDL()
+ ie = YoutubeIE(ydl)
if stype == 'js':
with io.open(fn, encoding='utf-8') as testf:
jscode = testf.read()