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

Function test_simple

tests/test_renepay.py:20–27  ·  view source on GitHub ↗

Testing simply paying a peer.

(node_factory)

Source from the content-addressed store, hash-verified

18
19
20def 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
30def test_direction_matters(node_factory):

Callers

nothing calls this directly

Calls 4

MillisatoshiClass · 0.90
line_graphMethod · 0.80
invoiceMethod · 0.45
callMethod · 0.45

Tested by

no test coverage detected