test: add boltz fundingsource to regtest (#3677)
Co-authored-by: Vlad Stan <stan.v.vlad@gmail.com>
This commit is contained in:
parent
281c3df826
commit
132192bc94
10 changed files with 137 additions and 57 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue