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

Function test_no_sources

tests/test_currencyrate.py:82–93  ·  view source on GitHub ↗
(node_factory)

Source from the content-addressed store, hash-verified

80
81
82def test_no_sources(node_factory):
83 opts = {
84 "currencyrate-disable-source": ALL_RESOURCES,
85 }
86 l1 = node_factory.get_node(options=opts)
87
88 with pytest.raises(
89 RpcError,
90 match="Unknown command 'listcurrencyrates'",
91 ):
92 rates = l1.rpc.call("listcurrencyrates", ["USD"])
93 LOGGER.info(rates)
94
95
96def test_invalid_currency(node_factory, fake_rateserver):

Callers

nothing calls this directly

Calls 2

get_nodeMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected