2024-12-11 10:39:28 +01:00
|
|
|
import pytest
|
2024-04-19 13:22:06 +02:00
|
|
|
|
|
|
|
from .helpers import get_hold_invoice, get_real_invoice
|
|
|
|
|
|
|
|
|
2024-12-11 10:39:28 +01:00
|
|
|
@pytest.fixture(scope="function")
|
2024-04-19 13:22:06 +02:00
|
|
|
async def hold_invoice():
|
|
|
|
invoice = get_hold_invoice(100)
|
|
|
|
yield invoice
|
|
|
|
del invoice
|
|
|
|
|
|
|
|
|
2024-12-11 10:39:28 +01:00
|
|
|
@pytest.fixture(scope="function")
|
2024-04-19 13:22:06 +02:00
|
|
|
async def real_invoice():
|
|
|
|
invoice = get_real_invoice(100)
|
|
|
|
yield {"bolt11": invoice["payment_request"]}
|
|
|
|
del invoice
|
2024-05-13 16:55:38 +02:00
|
|
|
|
|
|
|
|
2024-12-11 10:39:28 +01:00
|
|
|
@pytest.fixture(scope="function")
|
2024-05-13 16:55:38 +02:00
|
|
|
async def real_amountless_invoice():
|
|
|
|
invoice = get_real_invoice(0)
|
|
|
|
yield invoice["payment_request"]
|
|
|
|
del invoice
|