3 # Allow direct execution
8 sys
.path
.insert(0, os
.path
.dirname(os
.path
.dirname(os
.path
.abspath(__file__
))))
11 from yt_dlp
.extractor
import gen_extractor_classes
12 from yt_dlp
.extractor
.common
import InfoExtractor
14 NO_LOGIN
= InfoExtractor
._perform
_login
17 class TestNetRc(unittest
.TestCase
):
18 def test_netrc_present(self
):
19 for ie
in gen_extractor_classes():
20 if ie
._perform
_login
is NO_LOGIN
:
24 f
'Extractor {ie.IE_NAME} supports login, but is missing a _NETRC_MACHINE property')
27 if __name__
== '__main__':