MCPcopy
hub / github.com/scrapy/scrapy / _mocked_download_func

Function _mocked_download_func

tests/test_pipeline_media.py:24–31  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

22
23
24async def _mocked_download_func(request):
25 assert request.callback is NO_CALLBACK
26 response = request.meta.get("response")
27 if callable(response):
28 response = await response()
29 if isinstance(response, Exception):
30 raise response
31 return response
32
33
34class UserDefinedPipeline(MediaPipeline):

Callers

nothing calls this directly

Calls 2

responseFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected