reactivate actions (#682)

* reactivate other actions

* black

* codeql 2

* black only

* remove mock event loop

* do not follow grpc
This commit is contained in:
calle 2022-06-27 01:11:35 +02:00 committed by GitHub
parent f6da260464
commit e7dd3ec64f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 28 additions and 27 deletions

View file

@ -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())