MCPcopy
hub / github.com/AstrBotDevs/AstrBot / mock_download_core

Function mock_download_core

tests/test_dashboard.py:2710–2718  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

2708 calls = []
2709
2710 async def mock_download_core(*args, **kwargs):
2711 calls.append("download-core")
2712 callback = kwargs.get("progress_callback")
2713 if callback:
2714 callback({"downloaded": 10, "total": 10, "percent": 1, "speed": 1})
2715 zip_path = kwargs["path"]
2716 with zipfile.ZipFile(zip_path, "w") as zf:
2717 zf.writestr("AstrBot-main/README.md", "core")
2718 return zip_path
2719
2720 def mock_apply_core(*args, **kwargs):
2721 del args, kwargs

Callers

nothing calls this directly

Calls 2

appendMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected