diff --git a/tests/test_pipeline_crawl.py b/tests/test_pipeline_crawl.py index c0c4c9490..b5f3bf744 100644 --- a/tests/test_pipeline_crawl.py +++ b/tests/test_pipeline_crawl.py @@ -68,7 +68,8 @@ class CreatedMediaDownloadSpider(MediaDownloadSpider): name = "createdmedia" - def _process_url(self, url): + def _process_url(self, url: str) -> str: + assert self.mockserver return add_or_replace_parameter(self.mockserver.url("/created"), "goto", url)