mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-19 09:54:21 +01:00
1e752dc3d2
* test: services create and pay invoice * add more tests * check with fundingsource * check status
25 lines
558 B
Python
25 lines
558 B
Python
import pytest_asyncio
|
|
|
|
from .helpers import get_hold_invoice, get_real_invoice
|
|
|
|
|
|
@pytest_asyncio.fixture(scope="function")
|
|
async def hold_invoice():
|
|
invoice = get_hold_invoice(100)
|
|
yield invoice
|
|
del invoice
|
|
|
|
|
|
@pytest_asyncio.fixture(scope="function")
|
|
async def real_invoice():
|
|
invoice = get_real_invoice(100)
|
|
yield {"bolt11": invoice["payment_request"]}
|
|
del invoice
|
|
|
|
|
|
@pytest_asyncio.fixture(scope="function")
|
|
async def real_amountless_invoice():
|
|
invoice = get_real_invoice(0)
|
|
yield invoice["payment_request"]
|
|
del invoice
|