reactivate actions (#682)
* reactivate other actions * black * codeql 2 * black only * remove mock event loop * do not follow grpc
This commit is contained in:
parent
f6da260464
commit
e7dd3ec64f
9 changed files with 28 additions and 27 deletions
|
|
@ -14,14 +14,6 @@ from lnbits.wallets.fake import FakeWallet
|
|||
|
||||
from .helpers import get_random_string
|
||||
|
||||
# primitive event loop for generate_mock_invoice()
|
||||
def drive(c):
|
||||
while True:
|
||||
try:
|
||||
c.send(None)
|
||||
except StopIteration as e:
|
||||
return e.value
|
||||
|
||||
|
||||
# generates an invoice with FakeWallet
|
||||
async def generate_mock_invoice(**x):
|
||||
|
|
@ -44,6 +36,14 @@ WALLET.create_invoice = generate_mock_invoice
|
|||
# times which makes the db throw an error due to uniqueness contraints
|
||||
# on the checking ID
|
||||
|
||||
# # primitive event loop for generate_mock_invoice()
|
||||
# def drive(c):
|
||||
# while True:
|
||||
# try:
|
||||
# c.send(None)
|
||||
# except StopIteration as e:
|
||||
# return e.value
|
||||
|
||||
# # finally we await it
|
||||
# invoice = drive(generate_mock_invoice())
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue