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

Function _write_requirements

tests/test_plugin_manager.py:51–54  ·  view source on GitHub ↗

Creates a requirements.txt file.

(plugin_path: Path)

Source from the content-addressed store, hash-verified

49
50
51def _write_requirements(plugin_path: Path):
52 """Creates a requirements.txt file."""
53 with open(plugin_path / "requirements.txt", "w", encoding="utf-8") as f:
54 f.write("networkx\n")
55
56
57def test_load_plugin_i18n_reads_locale_files(tmp_path: Path):

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected