test search, git clone, and installation to folder.
(node_factory)
| 251 | |
| 252 | |
| 253 | def 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") |
nothing calls this directly
no test coverage detected