[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:
parent
f478c1848a
commit
11fec7a889
3 changed files with 135 additions and 6 deletions
|
|
@ -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"]}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue