mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 07:04:22 +01:00
pyln-client: send proper JSONRPC2 errors on failed call
Changelog-Added: pyln now sends proper error on bad calls to plugin methods Co-Authored-By: Sergi Delgado Segura <sergi.delgado.s@gmail.com>
This commit is contained in:
@@ -180,6 +180,11 @@ def test_rpc_passthrough(node_factory):
|
||||
with pytest.raises(RpcError):
|
||||
n.rpc.fail()
|
||||
|
||||
# Try to call a method without enough arguments
|
||||
with pytest.raises(RpcError, match="processing bye: missing a required"
|
||||
" argument"):
|
||||
n.rpc.bye()
|
||||
|
||||
|
||||
def test_plugin_dir(node_factory):
|
||||
"""--plugin-dir works"""
|
||||
|
||||
Reference in New Issue
Block a user