This commit is contained in:
callebtc
2022-10-11 00:41:55 +02:00
parent d4a89ac76f
commit 6838b0be05
9 changed files with 45 additions and 53 deletions

View File

@@ -1,11 +1,9 @@
import time
from distutils.command.build_scripts import first_line_re
from re import S
from typing import List
import pytest
import pytest_asyncio
from typing import List
from cashu.core.base import Proof
from cashu.core.helpers import async_unwrap, sum_proofs
from cashu.core.migrations import migrate_databases
@@ -27,9 +25,9 @@ async def assert_err(f, msg):
)
def assert_amt(proofs, expected):
def assert_amt(proofs: List[Proof], expected: int):
"""Assert amounts the proofs contain."""
assert [p["amount"] for p in proofs] == expected
assert [p.amount for p in proofs] == expected
@pytest_asyncio.fixture(scope="function")