aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_extractor.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2024-12-02 00:32:05 -0500
committerLibravatarUnit 193 <unit193@unit193.net>2024-12-02 00:32:05 -0500
commit7c235d96e2417306334cd93517a2723039a5a0b5 (patch)
treecd29cbb34195d8f384237d70a3f8e7405827496a /test/test_extractor.py
parentc68fa03f6af81fc1a23a7021fe28e73bacf71f66 (diff)
parent1981ccaaea6eab2cf32536ec5afe132a870914d8 (diff)
Update upstream source from tag 'upstream/1.28.0'
Update to upstream version '1.28.0' with Debian dir d2219dc8130062139eee5a8e4e0da3dc60db3a4e
Diffstat (limited to 'test/test_extractor.py')
-rw-r--r--test/test_extractor.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/test_extractor.py b/test/test_extractor.py
index e622fa8..cc85fb2 100644
--- a/test/test_extractor.py
+++ b/test/test_extractor.py
@@ -168,12 +168,17 @@ class TestExtractorModule(unittest.TestCase):
def test_init(self):
"""Test for exceptions in Extractor.initialize() and .finalize()"""
+ def fail_request(*args, **kwargs):
+ self.fail("called 'request() during initialization")
+
for cls in extractor.extractors():
if cls.category == "ytdl":
continue
extr = cls.from_url(cls.example)
if not extr and cls.basecategory and not cls.instances:
continue
+
+ extr.request = fail_request
extr.initialize()
extr.finalize()