From 2e0276bc605a1b704cbfeee39e3d5fd03881376e Mon Sep 17 00:00:00 2001 From: dni Date: Wed, 20 Jul 2022 12:17:34 +0200 Subject: [PATCH] make test run again, introduce mypy again --- lnbits/core/views/api.py | 2 +- tests/core/views/test_api.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lnbits/core/views/api.py b/lnbits/core/views/api.py index 95e9dde3a..c81f623a7 100644 --- a/lnbits/core/views/api.py +++ b/lnbits/core/views/api.py @@ -248,7 +248,7 @@ async def api_payments_pay_invoice(bolt11: str, wallet: Wallet): ) async def api_payments_create( wallet: WalletTypeInfo = Depends(require_invoice_key), - invoiceData=Body(...), + invoiceData: CreateInvoiceData = Body(...), ): if invoiceData.out is True and wallet.wallet_type == 0: if not invoiceData.bolt11: diff --git a/tests/core/views/test_api.py b/tests/core/views/test_api.py index 1f858870b..01427cbac 100644 --- a/tests/core/views/test_api.py +++ b/tests/core/views/test_api.py @@ -1,6 +1,7 @@ import pytest import pytest_asyncio from lnbits.core.crud import get_wallet +from lnbits.core.views.api import api_payment from ...helpers import get_random_invoice_data