[Wallets] CLN: fix pending state check (#1770)

* better checking

* flake8 fix

* make format

* invoices scope are function for tests

* invoice back to sessionbut keep real_invoice for now

* make format

* comment

* get payment by checking id and test
This commit is contained in:
callebtc 2023-07-24 12:00:41 +02:00 committed by GitHub
parent f478c1848a
commit 11fec7a889
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 135 additions and 6 deletions

View file

@ -125,7 +125,7 @@ async def invoice(to_wallet):
del invoice
@pytest_asyncio.fixture(scope="session")
@pytest_asyncio.fixture(scope="function")
async def real_invoice():
invoice = get_real_invoice(100)
yield {"bolt11": invoice["payment_request"]}