This commit is contained in:
Arc
2026-06-26 13:29:30 +01:00
parent b25a5cfcf6
commit 95deb47765
+2 -2
View File
@@ -15,7 +15,7 @@ from lnbits.core.crud.payments import (
from lnbits.core.models import Account, CreateInvoice, PaymentFilters, PaymentState from lnbits.core.models import Account, CreateInvoice, PaymentFilters, PaymentState
from lnbits.core.models.payments import CancelInvoice, CreatePayment, SettleInvoice from lnbits.core.models.payments import CancelInvoice, CreatePayment, SettleInvoice
from lnbits.core.models.users import AccountId from lnbits.core.models.users import AccountId
from lnbits.core.models.wallets import KeyType, WalletTypeInfo from lnbits.core.models.wallets import BaseWalletTypeInfo, KeyType, WalletTypeInfo
from lnbits.core.services.payments import create_wallet_invoice from lnbits.core.services.payments import create_wallet_invoice
from lnbits.core.services.users import create_user_account from lnbits.core.services.users import create_user_account
from lnbits.core.views.payment_api import ( from lnbits.core.views.payment_api import (
@@ -183,7 +183,7 @@ async def test_payment_api_total_breakdown_groups_wallet_tags_and_fiat():
await _create_payment(second_wallet.id, amount_msat=8_000, tag="books") await _create_payment(second_wallet.id, amount_msat=8_000, tag="books")
breakdown = await api_payments_total_breakdown( breakdown = await api_payments_total_breakdown(
WalletTypeInfo(key_type=KeyType.invoice, wallet=first_wallet) BaseWalletTypeInfo(key_type=KeyType.invoice, wallet=first_wallet)
) )
assert any( assert any(