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

Function mock_unzip_file

tests/test_plugin_manager.py:431–435  ·  view source on GitHub ↗
(zip_path: str, target_dir: str)

Source from the content-addressed store, hash-verified

429 _mock_missing_requirements(monkeypatch, {"networkx"})
430
431 def mock_unzip_file(zip_path: str, target_dir: str) -> None:
432 assert zip_path == str(zip_file_path)
433 plugin_path = Path(target_dir)
434 _write_local_test_plugin(plugin_path, TEST_PLUGIN_REPO)
435 _write_requirements(plugin_path)
436
437 monkeypatch.setattr(plugin_manager_pm.updator, "unzip_file", mock_unzip_file)
438 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