Reproducing the issue: https://github.com/ElementsProject/lightning/issues/7405
(node_factory)
| 6167 | |
| 6168 | |
| 6169 | def test_fetch_no_description_with_amount(node_factory): |
| 6170 | """Reproducing the issue: https://github.com/ElementsProject/lightning/issues/7405""" |
| 6171 | l1, l2 = node_factory.line_graph(2, opts={'allow-deprecated-apis': True}) |
| 6172 | |
| 6173 | # Deprecated fields make schema checker upset. |
| 6174 | # BOLT #12: |
| 6175 | # |
| 6176 | # - if `offer_amount` is set and `offer_description` is not set: |
| 6177 | # - MUST NOT respond to the offer. |
| 6178 | err = r'description is required for the user to know what it was they paid for' |
| 6179 | with pytest.raises(RpcError, match=err) as err: |
| 6180 | _ = l2.rpc.call('offer', {'amount': '2msat'}) |
| 6181 | |
| 6182 | |
| 6183 | def test_enableoffer(node_factory): |
nothing calls this directly
no test coverage detected