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
parent 281c3df826
commit 132192bc94
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 137 additions and 57 deletions

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