use '_extractor' info in UrlJobs

This commit is contained in:
Mike Fährmann
2021-05-19 15:52:30 +02:00
parent 4fc9668922
commit adf4d661b3
2 changed files with 18 additions and 9 deletions

View File

@@ -104,11 +104,14 @@ test:child
test:child
""")
# def test_child(self):
# extr = TestExtractorParent.from_url("test:parent")
# tjob = job.UrlJob(extr, depth=0)
# self.assertEqual(self._capture_stdout(tjob), """\
# """)
def test_child(self):
extr = TestExtractorParent.from_url("test:parent")
tjob = job.UrlJob(extr, depth=0)
self.assertEqual(self._capture_stdout(tjob), 3 * """\
https://example.org/1.jpg
https://example.org/2.jpg
https://example.org/3.jpg
""")
class TestInfoJob(TestJob):