fix flake8 F401+F403 (module imported but unused + unable to detect undefined names)

This commit is contained in:
Pavol Rusnak 2023-01-21 19:31:42 +00:00
parent 967ce06ca5
commit a49a654137
No known key found for this signature in database
GPG key ID: 91F3B339B9A02A3D
65 changed files with 102 additions and 160 deletions

View file

@ -5,8 +5,7 @@ from httpx import AsyncClient
from lnbits.app import create_app
from lnbits.commands import migrate_databases
from lnbits.core.crud import create_account, create_wallet, get_wallet
from lnbits.core.models import BalanceCheck, Payment, User, Wallet
from lnbits.core.crud import create_account, create_wallet
from lnbits.core.views.api import CreateInvoiceData, api_payments_create_invoice
from lnbits.db import Database
from lnbits.settings import settings

View file

@ -1,15 +1,9 @@
import hashlib
import pytest
import pytest_asyncio
from lnbits import bolt11
from lnbits.core.crud import get_wallet
from lnbits.core.views.api import (
CreateInvoiceData,
api_payment,
api_payments_create_invoice,
)
from lnbits.core.views.api import api_payment
from lnbits.settings import get_wallet_class
from ...helpers import get_random_invoice_data, is_regtest

View file

@ -1,7 +1,4 @@
import pytest
import pytest_asyncio
from tests.conftest import client
@pytest.mark.asyncio

View file

@ -1,7 +1,4 @@
import pytest
import pytest_asyncio
from lnbits.core.crud import get_wallet
# check if the client is working

View file

@ -1,7 +1,6 @@
import json
import secrets
import pytest
import pytest_asyncio
from lnbits.core.crud import create_account, create_wallet

View file

@ -1,7 +1,6 @@
import secrets
import pytest
import pytest_asyncio
from lnbits.core.crud import get_wallet
from lnbits.extensions.bleskomat.crud import get_bleskomat_lnurl
@ -10,8 +9,6 @@ from lnbits.extensions.bleskomat.helpers import (
query_to_signing_payload,
)
from lnbits.settings import get_wallet_class, settings
from tests.conftest import client
from tests.extensions.bleskomat.conftest import bleskomat, lnurl
from tests.helpers import credit_wallet, is_regtest
WALLET = get_wallet_class()

View file

@ -1,4 +1,3 @@
import pytest
import pytest_asyncio
from lnbits.core.crud import create_account, create_wallet

View file

@ -1,12 +1,15 @@
import pytest
import pytest_asyncio
from loguru import logger
import pytest_asyncio # noqa: F401
from loguru import logger # noqa: F401
from lnbits.core.crud import get_wallet
from tests.conftest import adminkey_headers_from, client, invoice
from tests.extensions.invoices.conftest import accounting_invoice, invoices_wallet
from tests.helpers import credit_wallet
from tests.mocks import WALLET
from lnbits.core.crud import get_wallet # noqa: F401
from tests.conftest import adminkey_headers_from, client, invoice # noqa: F401
from tests.extensions.invoices.conftest import ( # noqa: F401
accounting_invoice,
invoices_wallet,
)
from tests.helpers import credit_wallet # noqa: F401
from tests.mocks import WALLET # noqa: F401
@pytest.mark.asyncio