test: more payment tests (#2738)

* test: pay_invoice
This commit is contained in:
Vlad Stan 2024-10-17 11:27:36 +03:00 committed by GitHub
parent 13f2dd732f
commit ae4eda04ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 602 additions and 25 deletions

View file

@ -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