aboutsummaryrefslogtreecommitdiffstats
path: root/test/helper.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/helper.py')
-rw-r--r--test/helper.py7
1 files changed, 7 insertions, 0 deletions
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()