test: more payment tests (#2738)

* test: pay_invoice
This commit is contained in:
Vlad Stan
2024-10-17 10:27:36 +02:00
committed by GitHub
parent 13f2dd732f
commit ae4eda04ba
6 changed files with 602 additions and 25 deletions
@@ -25,15 +25,6 @@ async def test_services_pay_invoice(to_wallet, real_invoice):
assert payment.memo == description
@pytest.mark.asyncio
async def test_services_pay_invoice_invalid_bolt11(to_wallet):
with pytest.raises(PaymentError):
await pay_invoice(
wallet_id=to_wallet.id,
payment_request="lnbcr1123123n",
)
@pytest.mark.asyncio
async def test_services_pay_invoice_0_amount_invoice(
to_wallet, real_amountless_invoice