MCPcopy Index your code
hub / github.com/SourceCode-AI/aura / _callback_download

Function _callback_download

tests/conftest.py:334–341  ·  view source on GitHub ↗
(request)

Source from the content-addressed store, hash-verified

332
333
334 def _callback_download(request):
335 filename = request.url.split("/")[-1]
336 file_pth = fixtures.path(f"mirror/{filename}")
337 if os.path.exists(file_pth):
338 with open(file_pth, "rb") as fd:
339 return (200, {'Content-length': str(os.stat(file_pth).st_size)}, fd.read())
340 else:
341 return (404, {"Content-length": 0}, "")
342
343
344 def _callback(request):

Callers

nothing calls this directly

Calls 3

pathMethod · 0.80
readMethod · 0.80
existsMethod · 0.45

Tested by

no test coverage detected