test: add boltz fundingsource to regtest (#3677)

Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
dni ⚡
2025-12-22 09:23:46 +01:00
committed by GitHub
co-authored by Vlad Stan
parent 281c3df826
commit 132192bc94
10 changed files with 137 additions and 57 deletions
+7 -2
View File
@@ -6,6 +6,8 @@ from lnbits.core.services import (
)
from lnbits.exceptions import PaymentError
from .helpers import is_boltz_wallet
description = "test pay invoice"
@@ -17,9 +19,12 @@ async def test_services_pay_invoice(to_wallet, real_invoice):
description=description,
)
assert payment
assert payment.status == PaymentState.SUCCESS
assert payment.memo == description
assert payment.preimage
if not is_boltz_wallet:
assert payment.status == PaymentState.SUCCESS
assert payment.preimage
else:
assert payment.status == PaymentState.PENDING
@pytest.mark.anyio