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

Function test_sql_deprecated

tests/test_plugin.py:4512–4521  ·  view source on GitHub ↗
(node_factory, bitcoind)

Source from the content-addressed store, hash-verified

4510
4511
4512def test_sql_deprecated(node_factory, bitcoind):
4513 l1, l2 = node_factory.line_graph(2, opts=[{'allow-deprecated-apis': True}, {}])
4514
4515 # Even with deprecated APIs, this isn't there.
4516 with pytest.raises(RpcError, match="query failed with no such column: max_total_htlc_in_msat"):
4517 l1.rpc.sql("SELECT max_total_htlc_in_msat FROM peerchannels;")
4518
4519 # But we can use a wildcard fine.
4520 ret = l2.rpc.sql("SELECT COUNT(*) FROM peerchannels;")
4521 assert ret == {'rows': [[1]]}
4522
4523
4524def test_sql_limit_per_list(node_factory):

Callers

nothing calls this directly

Calls 1

line_graphMethod · 0.80

Tested by

no test coverage detected