test: restructure tests (#2444)

unit, api, wallets
* only run test-api for migration
This commit is contained in:
dni ⚡ 2024-04-19 13:22:06 +02:00 committed by GitHub
parent 67fdb77339
commit e607ab7a3e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 605 additions and 563 deletions

17
tests/regtest/conftest.py Normal file
View file

@ -0,0 +1,17 @@
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