(node_factory)
| 93 | |
| 94 | |
| 95 | def test_pay_amounts(node_factory): |
| 96 | l1, l2 = node_factory.line_graph(2) |
| 97 | inv = l2.rpc.invoice(Millisatoshi("123sat"), 'test_pay_amounts', 'description')['bolt11'] |
| 98 | |
| 99 | invoice = only_one(l2.rpc.listinvoices('test_pay_amounts')['invoices']) |
| 100 | |
| 101 | assert invoice['amount_msat'] == Millisatoshi(123000) |
| 102 | |
| 103 | l1.dev_pay(inv, dev_use_shadow=False) |
| 104 | |
| 105 | invoice = only_one(l2.rpc.listinvoices('test_pay_amounts')['invoices']) |
| 106 | assert invoice['amount_received_msat'] >= Millisatoshi(123000) |
| 107 | |
| 108 | |
| 109 | def test_pay_limits(node_factory): |
nothing calls this directly
no test coverage detected