]>
jfr.im git - yt-dlp.git/blob - test/test_netrc.py
2 from __future__
import unicode_literals
7 sys
.path
.insert(0, os
.path
.dirname(os
.path
.dirname(os
.path
.abspath(__file__
))))
10 from yt_dlp
.extractor
import gen_extractor_classes
11 from yt_dlp
.extractor
.common
import InfoExtractor
13 NO_LOGIN
= InfoExtractor
._perform
_login
16 class TestNetRc(unittest
.TestCase
):
17 def test_netrc_present(self
):
18 for ie
in gen_extractor_classes():
19 if ie
._perform
_login
is NO_LOGIN
:
23 'Extractor %s supports login, but is missing a _NETRC_MACHINE property' % ie
.IE_NAME
)
26 if __name__
== '__main__':