MCPcopy Create free account
hub / github.com/AstrBotDevs/AstrBot / mock_install

Function mock_install

tests/test_plugin_manager.py:380–384  ·  view source on GitHub ↗
(repo_url: str, proxy="")

Source from the content-addressed store, hash-verified

378 _mock_missing_requirements(monkeypatch, {"networkx"})
379
380 async def mock_install(repo_url: str, proxy=""):
381 assert repo_url == TEST_PLUGIN_REPO
382 _write_local_test_plugin(plugin_path, repo_url)
383 _write_requirements(plugin_path)
384 return str(plugin_path)
385
386 monkeypatch.setattr(plugin_manager_pm.updator, "install", mock_install)
387 monkeypatch.setattr(

Callers

nothing calls this directly

Calls 2

_write_local_test_pluginFunction · 0.85
_write_requirementsFunction · 0.85

Tested by

no test coverage detected