Mega-merge 1: Test invoice creation with description hash (WIP) (#812)
* check for description hash * remove unnecessary asserts for clarity * assume that description_hash is a hash already * no lock * restore bolt11.py * /api/v1/payments with hex of description * comment
This commit is contained in:
parent
a1919e0619
commit
c88e6b0e62
2 changed files with 26 additions and 5 deletions
|
|
@ -122,12 +122,8 @@ async def adminkey_headers_to(to_wallet):
|
|||
|
||||
@pytest_asyncio.fixture(scope="session")
|
||||
async def invoice(to_wallet):
|
||||
wallet = to_wallet
|
||||
data = await get_random_invoice_data()
|
||||
invoiceData = CreateInvoiceData(**data)
|
||||
stuff_lock = asyncio.Lock()
|
||||
async with stuff_lock:
|
||||
invoice = await api_payments_create_invoice(invoiceData, wallet)
|
||||
await asyncio.sleep(1)
|
||||
invoice = await api_payments_create_invoice(invoiceData, to_wallet)
|
||||
yield invoice
|
||||
del invoice
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue