1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-17 14:45:42 +07:00

[test_all_urls] Add support for distributed URL matching test definition

This commit is contained in:
Philipp Hagemeister
2014-04-19 19:41:06 +02:00
parent 5367fe7f4d
commit 52fadd5fb2
5 changed files with 21 additions and 17 deletions

View File

@@ -106,7 +106,7 @@ def test_facebook_matching(self):
def test_no_duplicates(self):
ies = gen_extractors()
for tc in gettestcases():
for tc in gettestcases(include_onlymatching=True):
url = tc['url']
for ie in ies:
if type(ie).__name__ in ('GenericIE', tc['name'] + 'IE'):
@@ -176,5 +176,6 @@ def test_yahoo_https(self):
'https://screen.yahoo.com/smartwatches-latest-wearable-gadgets-163745379-cbs.html',
['Yahoo'])
if __name__ == '__main__':
unittest.main()