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

Function test_keysend_plugin

tests/test_plugin.py:469–480  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

467
468
469def test_keysend_plugin(node_factory):
470 l1, l2 = node_factory.line_graph(2, opts={'allow-deprecated-apis': True})
471
472 with pytest.raises(RpcError, match=r'missing required parameter'):
473 l1.rpc.call('keysend')
474
475 # Make sure usage messages are present.
476 msg = 'keysend (DEPRECATED!) destination amount_msat [label] [maxfeepercent] [retry_for] '\
477 '[maxdelay] [exemptfee] [extratlvs] [routehints] [maxfee]'
478 # We run with --developer:
479 msg += ' [dev_use_shadow]'
480 assert only_one(l1.rpc.help('keysend')['help'])['command'] == msg
481
482
483def test_plugin_connected_hook_chaining(node_factory):

Callers

nothing calls this directly

Calls 4

only_oneFunction · 0.90
line_graphMethod · 0.80
callMethod · 0.45
helpMethod · 0.45

Tested by

no test coverage detected