MCPcopy Create free account
hub / github.com/ElementsProject/lightning / test_install

Function test_install

tests/test_reckless.py:253–264  ·  view source on GitHub ↗

test search, git clone, and installation to folder.

(node_factory)

Source from the content-addressed store, hash-verified

251
252
253def test_install(node_factory):
254 """test search, git clone, and installation to folder."""
255 n = get_reckless_node(node_factory)
256 r = reckless([f"--network={NETWORK}", "-v", "install", "testplugpass"], dir=n.lightning_dir)
257 assert r.returncode == 0
258 assert r.search_stdout('dependencies installed successfully')
259 assert r.search_stdout('plugin installed:')
260 assert r.search_stdout('testplugpass enabled')
261 r.check_stderr()
262 plugin_path = Path(n.lightning_dir) / 'reckless/testplugpass'
263 print(plugin_path)
264 assert os.path.exists(plugin_path)
265
266
267@unittest.skipIf(VALGRIND, "virtual environment triggers memleak detection")

Callers

nothing calls this directly

Calls 4

get_reckless_nodeFunction · 0.85
search_stdoutMethod · 0.80
check_stderrMethod · 0.80
recklessFunction · 0.70

Tested by

no test coverage detected