From 3094f7739f699f064f8d8be98dd5c0cc55b1509d Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sun, 16 Oct 2022 13:36:29 +0200 Subject: [PATCH] add more tests --- tests/test_core.py | 5 +++++ tests/test_mint.py | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) create mode 100644 tests/test_core.py diff --git a/tests/test_core.py b/tests/test_core.py new file mode 100644 index 0000000..b50b07c --- /dev/null +++ b/tests/test_core.py @@ -0,0 +1,5 @@ +from cashu.core.split import amount_split + + +def test_get_output_split(): + assert amount_split(13) == [1, 4, 8] diff --git a/tests/test_mint.py b/tests/test_mint.py index ad5713b..a949b0f 100644 --- a/tests/test_mint.py +++ b/tests/test_mint.py @@ -112,8 +112,3 @@ async def test_generate_promises(ledger: Ledger): promises[0].C_ == "032dfadd74bb3abba8170ecbae5401507e384eafd312defda94148fa37314c0ef0" ) - - -@pytest.mark.asyncio -async def test_get_output_split(ledger: Ledger): - assert ledger._get_output_split(13) == [1, 4, 8]