[tests] skip test_init for BaseExtractor classes without instances
This commit is contained in:
@@ -142,6 +142,8 @@ class TestExtractorModule(unittest.TestCase):
|
|||||||
if cls.category == "ytdl":
|
if cls.category == "ytdl":
|
||||||
continue
|
continue
|
||||||
extr = cls.from_url(cls.example)
|
extr = cls.from_url(cls.example)
|
||||||
|
if not extr and cls.basecategory and not cls.instances:
|
||||||
|
continue
|
||||||
extr.initialize()
|
extr.initialize()
|
||||||
extr.finalize()
|
extr.finalize()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user