(node_factory)
| 80 | |
| 81 | |
| 82 | def 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 | |
| 96 | def test_invalid_currency(node_factory, fake_rateserver): |