diff options
| author | 2024-03-25 02:57:50 -0400 | |
|---|---|---|
| committer | 2024-03-25 02:57:50 -0400 | |
| commit | 039aecad63a074bdcc75bd4f30c84bdc4a1a244f (patch) | |
| tree | 39997d0361f67208c716fba6717895b42ee309d1 /test/test_extractor.py | |
| parent | 77d11300e15ee4045b187a58ee6e039624e5d69c (diff) | |
| parent | 6e662211019a89caec44de8a57c675872b0b5498 (diff) | |
Update upstream source from tag 'upstream/1.26.9'
Update to upstream version '1.26.9'
with Debian dir e04ff15132747292d335c9d456bd879aca333115
Diffstat (limited to 'test/test_extractor.py')
| -rw-r--r-- | test/test_extractor.py | 8 |
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) |
