aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_extractor.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2024-03-25 02:57:44 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2024-03-25 02:57:44 -0400
commit6e662211019a89caec44de8a57c675872b0b5498 (patch)
tree5d9d5a2b7efc3a24dd6074e99b253b639fe5af1d /test/test_extractor.py
parent01166fa52707cc282467427cf0e65c1b8983c4be (diff)
New upstream version 1.26.9.upstream/1.26.9
Diffstat (limited to 'test/test_extractor.py')
-rw-r--r--test/test_extractor.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/test_extractor.py b/test/test_extractor.py
index 75a0b87..6af1226 100644
--- a/test/test_extractor.py
+++ b/test/test_extractor.py
@@ -45,7 +45,7 @@ class TestExtractorModule(unittest.TestCase):
"https://example.org/file.jpg",
"tumblr:foobar",
"oauth:flickr",
- "test:pixiv:",
+ "generic:https://example.org/",
"recursive:https://example.org/document.html",
)
@@ -208,7 +208,7 @@ class TestExtractorModule(unittest.TestCase):
class TestExtractorWait(unittest.TestCase):
def test_wait_seconds(self):
- extr = extractor.find("test:")
+ extr = extractor.find("generic:https://example.org/")
seconds = 5
until = time.time() + seconds
@@ -222,7 +222,7 @@ class TestExtractorWait(unittest.TestCase):
self._assert_isotime(calls[0][1][1], until)
def test_wait_until(self):
- extr = extractor.find("test:")
+ extr = extractor.find("generic:https://example.org/")
until = time.time() + 5
with patch("time.sleep") as sleep, patch.object(extr, "log") as log:
@@ -237,7 +237,7 @@ class TestExtractorWait(unittest.TestCase):
self._assert_isotime(calls[0][1][1], until)
def test_wait_until_datetime(self):
- extr = extractor.find("test:")
+ extr = extractor.find("generic:https://example.org/")
until = datetime.utcnow() + timedelta(seconds=5)
until_local = datetime.now() + timedelta(seconds=5)