Skip to content

Commit

Permalink
import unit
Browse files Browse the repository at this point in the history
  • Loading branch information
lollerfirst committed Oct 30, 2024
1 parent 4778501 commit 0d72aac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_mint.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import pytest

from cashu.core.base import BlindedMessage, MintKeyset, Proof
from cashu.core.base import BlindedMessage, MintKeyset, Proof, Unit
from cashu.core.crypto.b_dhke import step1_alice
from cashu.core.helpers import calculate_number_of_blank_outputs
from cashu.core.models import PostMintQuoteRequest
Expand Down Expand Up @@ -218,6 +218,7 @@ async def test_generate_change_promises_returns_empty_if_no_outputs(ledger: Ledg

@pytest.mark.asyncio
async def test_get_balance(ledger: Ledger):
unit = Unit["sat"]
active_keyset: MintKeyset = next(
filter(lambda k: k.active and k.unit == unit, ledger.keysets.values())
)
Expand Down

0 comments on commit 0d72aac

Please sign in to comment.