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

Function test_libplugin_deprecated

tests/test_plugin.py:1974–1985  ·  view source on GitHub ↗

Sanity checks for plugins made with libplugin using deprecated args

(node_factory)

Source from the content-addressed store, hash-verified

1972
1973
1974def test_libplugin_deprecated(node_factory):
1975 """Sanity checks for plugins made with libplugin using deprecated args"""
1976 plugin = os.path.join(os.getcwd(), "tests/plugins/test_libplugin")
1977 l1 = node_factory.get_node(options={"plugin": plugin,
1978 'somearg-deprecated': 'test_opt depr',
1979 'allow-deprecated-apis': True},
1980 # testrpc-deprecated causes a complaint!
1981 broken_log='DEPRECATED API USED')
1982
1983 assert l1.daemon.is_in_log("somearg = test_opt depr")
1984 l1.rpc.help('testrpc-deprecated')
1985 assert l1.rpc.call("testrpc-deprecated") == l1.rpc.getinfo()
1986
1987
1988@pytest.mark.openchannel('v1')

Callers

nothing calls this directly

Calls 6

joinMethod · 0.80
is_in_logMethod · 0.80
get_nodeMethod · 0.45
helpMethod · 0.45
callMethod · 0.45
getinfoMethod · 0.45

Tested by

no test coverage detected