Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/plugins/selfdisable.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ def init(configuration, options, plugin):
return {'disable': 'init saying disable'}


# plugin.add_option('dummy-option', False, 'does nothing', opt_type='bool')
plugin.run()
6 changes: 6 additions & 0 deletions tests/test_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3085,6 +3085,12 @@ def test_self_disable(node_factory):
with pytest.raises(RpcError, match="Disabled via selfdisable option"):
l1.rpc.plugin_start(p2, selfdisable=True)

with pytest.raises(RpcError, match="init saying disable"):
l1.rpc.plugin_start(pydisable)

with pytest.raises(RpcError, match="init saying disable"):
l1.rpc.plugin_start(pydisable, **{"dummy-option": True})


def test_restart_on_update(node_factory):
"""Tests if plugin rescan restarts modified plugins
Expand Down
Loading