[tests] skip test_init for BaseExtractor classes without instances

This commit is contained in:
Mike Fährmann
2023-11-27 18:36:15 +01:00
parent 625e94fa7d
commit 1137d72d48

View File

@@ -142,6 +142,8 @@ class TestExtractorModule(unittest.TestCase):
if cls.category == "ytdl":
continue
extr = cls.from_url(cls.example)
if not extr and cls.basecategory and not cls.instances:
continue
extr.initialize()
extr.finalize()