test search, git clone, and installation to folder.
(node_factory)
| 266 | |
| 267 | @unittest.skipIf(VALGRIND, "virtual environment triggers memleak detection") |
| 268 | def 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") |
nothing calls this directly
no test coverage detected