aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_extractor.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2020-09-28 18:27:52 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2020-09-28 18:27:52 -0400
commit0d515b6f4c526758687c329b3a643ad845827d36 (patch)
treef20f52694170f8274dce4f46dc1196eec278eaac /test/test_extractor.py
parent6ae34ce3013c0c2926556d139ea3397fb13756cd (diff)
parent9074eee175f76b824fbb6695d56426105191c51c (diff)
Update upstream source from tag 'upstream/1.15.0'
Update to upstream version '1.15.0' with Debian dir 7d11d19156690c131c977e4caeac73f32019dd58
Diffstat (limited to 'test/test_extractor.py')
-rw-r--r--test/test_extractor.py24
1 files changed, 0 insertions, 24 deletions
diff --git a/test/test_extractor.py b/test/test_extractor.py
index 043bd52..162edc0 100644
--- a/test/test_extractor.py
+++ b/test/test_extractor.py
@@ -75,30 +75,6 @@ class TestExtractorModule(unittest.TestCase):
self.assertEqual(classes[0], FakeExtractor)
self.assertIsInstance(extractor.find(uri), FakeExtractor)
- def test_blacklist(self):
- link_uri = "https://example.org/file.jpg"
- test_uri = "test:"
- fake_uri = "fake:"
-
- self.assertIsInstance(extractor.find(link_uri), DirectlinkExtractor)
- self.assertIsInstance(extractor.find(test_uri), Extractor)
- self.assertIsNone(extractor.find(fake_uri))
-
- with extractor.blacklist(["directlink"]):
- self.assertIsNone(extractor.find(link_uri))
- self.assertIsInstance(extractor.find(test_uri), Extractor)
- self.assertIsNone(extractor.find(fake_uri))
-
- with extractor.blacklist([], [DirectlinkExtractor, FakeExtractor]):
- self.assertIsNone(extractor.find(link_uri))
- self.assertIsInstance(extractor.find(test_uri), Extractor)
- self.assertIsNone(extractor.find(fake_uri))
-
- with extractor.blacklist(["test"], [DirectlinkExtractor]):
- self.assertIsNone(extractor.find(link_uri))
- self.assertIsNone(extractor.find(test_uri))
- self.assertIsNone(extractor.find(fake_uri))
-
def test_from_url(self):
for uri in self.VALID_URIS:
cls = extractor.find(uri).__class__