test: services create and pay invoice (#2452)

* test: services create and pay invoice
* add more tests
* check with fundingsource
* check status
This commit is contained in:
dni ⚡ 2024-05-13 16:55:38 +02:00 committed by GitHub
parent 6730c6ed67
commit 1e752dc3d2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 98 additions and 0 deletions

View file

@ -15,3 +15,10 @@ 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