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

Function test_plugin_nostart

tests/test_plugin.py:4648–4655  ·  view source on GitHub ↗

Should not appear in list if it didn't even start

(node_factory)

Source from the content-addressed store, hash-verified

4646
4647@unittest.skipIf(VALGRIND, "Valgrind doesn't handle bad #! lines the same")
4648def test_plugin_nostart(node_factory):
4649 "Should not appear in list if it didn't even start"
4650
4651 l1 = node_factory.get_node()
4652 with pytest.raises(RpcError, match="badinterp.py: opening pipe: No such file or directory"):
4653 l1.rpc.plugin_start(os.path.join(os.getcwd(), 'tests/plugins/badinterp.py'))
4654
4655 assert [p['name'] for p in l1.rpc.plugin_list()['plugins'] if 'badinterp' in p['name']] == []
4656
4657
4658def test_plugin_startdir_lol(node_factory):

Callers

nothing calls this directly

Calls 4

plugin_startMethod · 0.80
joinMethod · 0.80
plugin_listMethod · 0.80
get_nodeMethod · 0.45

Tested by

no test coverage detected