From f2e8dbcc0067fb16b632de1984e622a8e99d9d8f Mon Sep 17 00:00:00 2001 From: pukkandan Date: Fri, 8 Jul 2022 16:53:05 +0530 Subject: [extractor, test] Basic framework for embed tests (#4307) and split download tests so they can be more easily run in CI Authored by: coletdjnz --- test/helper.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/helper.py') diff --git a/test/helper.py b/test/helper.py index f19e1a34f..e918d8c46 100644 --- a/test/helper.py +++ b/test/helper.py @@ -92,6 +92,13 @@ def gettestcases(include_onlymatching=False): yield from ie.get_testcases(include_onlymatching) +def getwebpagetestcases(): + for ie in yt_dlp.extractor.gen_extractors(): + for tc in ie.get_webpage_testcases(): + tc.setdefault('add_ie', []).append('Generic') + yield tc + + md5 = lambda s: hashlib.md5(s.encode()).hexdigest() -- cgit v1.2.3