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

Function test_listconfigs_plugins

tests/test_misc.py:879–888  ·  view source on GitHub ↗
(node_factory, bitcoind, chainparams)

Source from the content-addressed store, hash-verified

877
878
879def test_listconfigs_plugins(node_factory, bitcoind, chainparams):
880 l1 = node_factory.get_node()
881
882 configs = l1.rpc.listconfigs()['configs']
883 assert len(configs['important-plugin']['values_str']) == 0
884 assert len(configs['i-promise-to-fix-broken-api-user']['values_str']) == 0
885
886 plugins = l1.rpc.plugin_list()['plugins']
887 assert [p['active'] for p in plugins if p['name'].endswith('sql')] == [True]
888 assert [p['active'] for p in plugins if p['name'].endswith('offers')] == [True]
889
890
891def connect_unix(socket_path: str):

Callers

nothing calls this directly

Calls 3

listconfigsMethod · 0.80
plugin_listMethod · 0.80
get_nodeMethod · 0.45

Tested by

no test coverage detected