(node_factory)
| 467 | |
| 468 | |
| 469 | def 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 | |
| 483 | def test_plugin_connected_hook_chaining(node_factory): |
nothing calls this directly
no test coverage detected