chore: fix lint
This commit is contained in:
@@ -17,9 +17,11 @@ from lnbits.core.services.fiat_providers import (
|
||||
check_fiat_status,
|
||||
check_stripe_signature,
|
||||
handle_fiat_payment_confirmation,
|
||||
test_connection as fiat_provider_connection,
|
||||
verify_paypal_webhook,
|
||||
)
|
||||
from lnbits.core.services.fiat_providers import (
|
||||
test_connection as fiat_provider_connection,
|
||||
)
|
||||
from lnbits.core.services.users import create_user_account
|
||||
from lnbits.fiat.base import FiatInvoiceResponse, FiatPaymentStatus, FiatStatusResponse
|
||||
from lnbits.settings import Settings
|
||||
@@ -577,9 +579,7 @@ async def test_verify_paypal_webhook_requires_headers(settings: Settings):
|
||||
|
||||
|
||||
@pytest.mark.anyio
|
||||
async def test_verify_paypal_webhook_success(
|
||||
settings: Settings, mocker: MockerFixture
|
||||
):
|
||||
async def test_verify_paypal_webhook_success(settings: Settings, mocker: MockerFixture):
|
||||
settings.paypal_webhook_id = "webhook-id"
|
||||
client = MockHTTPClient(
|
||||
[
|
||||
@@ -648,7 +648,9 @@ async def test_test_connection_reports_provider_status(mocker: MockerFixture):
|
||||
assert missing_status.message == "Fiat provider 'stripe' not found."
|
||||
|
||||
provider = mocker.Mock()
|
||||
provider.status = AsyncMock(return_value=FiatStatusResponse(error_message="bad key"))
|
||||
provider.status = AsyncMock(
|
||||
return_value=FiatStatusResponse(error_message="bad key")
|
||||
)
|
||||
mocker.patch(
|
||||
"lnbits.core.services.fiat_providers.get_fiat_provider",
|
||||
AsyncMock(return_value=provider),
|
||||
|
||||
Reference in New Issue
Block a user