Sanity checks for plugins made with libplugin using deprecated args
(node_factory)
| 1972 | |
| 1973 | |
| 1974 | def 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') |