from yt_dlp.extractor import IqiyiIE
-class IqiyiIEWithCredentials(IqiyiIE):
- def _get_login_info(self):
- return 'foo', 'bar'
-
-
class WarningLogger(object):
def __init__(self):
self.messages = []
If `sign` is incorrect, /validate call throws an HTTP 556 error
'''
logger = WarningLogger()
- ie = IqiyiIEWithCredentials(FakeYDL({'logger': logger}))
- ie._login()
+ ie = IqiyiIE(FakeYDL({'logger': logger}))
+ ie._perform_login('foo', 'bar')
self.assertTrue('unable to log in:' in logger.messages[0])