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

Function test_fetch_no_description_with_amount

tests/test_pay.py:6169–6180  ·  view source on GitHub ↗

Reproducing the issue: https://github.com/ElementsProject/lightning/issues/7405

(node_factory)

Source from the content-addressed store, hash-verified

6167
6168
6169def 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
6183def test_enableoffer(node_factory):

Callers

nothing calls this directly

Calls 2

line_graphMethod · 0.80
callMethod · 0.45

Tested by

no test coverage detected