lnbits-legend/tests/regtest/conftest.py
dni ⚡ 1b9bb32ca0
test: fix lndrest on regtest (#2811)
* fix: lndrest on regtest
* fix some race conditions on lndrest
2024-12-12 07:54:43 +01:00

24 lines
526 B
Python

import pytest
from .helpers import get_hold_invoice, get_real_invoice
@pytest.fixture(scope="function")
async def hold_invoice():
invoice = get_hold_invoice(100)
yield invoice
del invoice
@pytest.fixture(scope="function")
async def real_invoice():
invoice = get_real_invoice(100)
yield {"bolt11": invoice["payment_request"]}
del invoice
@pytest.fixture(scope="function")
async def real_amountless_invoice():
invoice = get_real_invoice(0)
yield invoice["payment_request"]
del invoice