mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 15:44:21 +01:00
doc/schemas: listfunds, listinvoices, listnodes, listoffers
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -1385,6 +1385,9 @@ def test_rpc_command_hook(node_factory):
|
||||
assert decoded["description"] == "rpc_command_1 modified this description"
|
||||
l1.daemon.wait_for_log("rpc_command hook 'invoice' already modified, ignoring.")
|
||||
|
||||
# Disable schema checking here!
|
||||
schemas = l1.rpc.jsonschemas
|
||||
l1.rpc.jsonschemas = {}
|
||||
# rpc_command_1 plugin sends a custom response to "listfunds"
|
||||
funds = l1.rpc.listfunds()
|
||||
assert funds[0] == "Custom rpc_command_1 result"
|
||||
@@ -1404,6 +1407,8 @@ def test_rpc_command_hook(node_factory):
|
||||
l1.rpc.plugin_stop('rpc_command_1.py')
|
||||
l1.rpc.plugin_stop('rpc_command_2.py')
|
||||
|
||||
l1.rpc.jsonschemas = schemas
|
||||
|
||||
|
||||
def test_libplugin(node_factory):
|
||||
"""Sanity checks for plugins made with libplugin"""
|
||||
|
||||
Reference in New Issue
Block a user