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

Function test_no_sources

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

Source from the content-addressed store, hash-verified

180
181
182def test_no_sources(node_factory):
183 opts = {
184 "currencyrate-disable-source": ALL_RESOURCES,
185 }
186 l1 = node_factory.get_node(options=opts)
187
188 with pytest.raises(
189 RpcError,
190 match="Unknown command 'listcurrencyrates'",
191 ):
192 rates = l1.rpc.call("listcurrencyrates", ["USD"])
193 LOGGER.info(rates)
194
195
196def test_invalid_currency(node_factory):

Callers

nothing calls this directly

Calls 2

get_nodeMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected