test: add regtest testcase for no route failure (#3189)

This commit is contained in:
dni ⚡ 2025-06-30 14:51:34 +02:00
parent ab3248da15
commit c4c03d96a3
No known key found for this signature in database
GPG key ID: D1F416F29AD26E87
7 changed files with 128 additions and 53 deletions

View file

@ -1,6 +1,6 @@
import pytest
from .helpers import get_hold_invoice, get_real_invoice
from .helpers import get_hold_invoice, get_real_invoice, get_real_invoice_noroute
@pytest.fixture(scope="function")
@ -22,3 +22,13 @@ async def real_amountless_invoice():
invoice = get_real_invoice(0)
yield invoice["payment_request"]
del invoice
@pytest.fixture(scope="function")
async def real_invoice_noroute():
invoice = get_real_invoice_noroute(100)
yield {
"bolt11": invoice["payment_request"],
"payment_hash": invoice["r_hash"],
}
del invoice