Testing simply paying a peer.
(node_factory)
| 18 | |
| 19 | |
| 20 | def test_simple(node_factory): |
| 21 | """Testing simply paying a peer.""" |
| 22 | l1, l2 = node_factory.line_graph(2, opts={'allow-deprecated-apis': True}) |
| 23 | inv = l2.rpc.invoice(123000, "test_renepay", "description")["bolt11"] |
| 24 | details = l1.rpc.call("renepay", {"invstring": inv}) |
| 25 | assert details["status"] == "complete" |
| 26 | assert details["amount_msat"] == Millisatoshi(123000) |
| 27 | assert details["destination"] == l2.info["id"] |
| 28 | |
| 29 | |
| 30 | def test_direction_matters(node_factory): |
nothing calls this directly
no test coverage detected