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

Function test_poetry_install

tests/test_reckless.py:268–283  ·  view source on GitHub ↗

test search, git clone, and installation to folder.

(node_factory)

Source from the content-addressed store, hash-verified

266
267@unittest.skipIf(VALGRIND, "virtual environment triggers memleak detection")
268def test_poetry_install(node_factory):
269 """test search, git clone, and installation to folder."""
270 n = get_reckless_node(node_factory)
271 r = reckless([f"--network={NETWORK}", "-v", "install", "testplugpyproj"], dir=n.lightning_dir)
272 assert r.returncode == 0
273 assert r.search_stdout('dependencies installed successfully')
274 assert r.search_stdout('plugin installed:')
275 assert r.search_stdout('testplugpyproj enabled')
276 r.check_stderr()
277 plugin_path = Path(n.lightning_dir) / 'reckless/testplugpyproj'
278 print(plugin_path)
279 assert os.path.exists(plugin_path)
280 n.start()
281 print(n.rpc.testmethod())
282 assert n.daemon.is_in_log(r'plugin-manager: started\([0-9].*\) /tmp/ltests-[a-z0-9_].*/test_poetry_install_1/lightning-1/reckless/testplugpyproj/testplugpyproj.py')
283 assert n.rpc.testmethod() == 'I live.'
284
285
286@unittest.skipIf(VALGRIND, "virtual environment triggers memleak detection")

Callers

nothing calls this directly

Calls 6

get_reckless_nodeFunction · 0.85
search_stdoutMethod · 0.80
check_stderrMethod · 0.80
is_in_logMethod · 0.80
recklessFunction · 0.70
startMethod · 0.45

Tested by

no test coverage detected