From 9c7871356233f0d2c64be4011717d5dba659b1d0 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sun, 8 Sep 2024 21:49:05 +0200 Subject: [PATCH] add two random tests --- tests/test_mint.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/test_mint.py b/tests/test_mint.py index f5976a82..9d097296 100644 --- a/tests/test_mint.py +++ b/tests/test_mint.py @@ -86,6 +86,22 @@ async def test_mint(ledger: Ledger): ) +@pytest.mark.asyncio +async def test_mint_invalid_quote(ledger: Ledger): + await assert_err( + ledger.get_mint_quote(quote_id="invalid_quote_id"), + "quote not found", + ) + + +@pytest.mark.asyncio +async def test_melt_invalid_quote(ledger: Ledger): + await assert_err( + ledger.get_melt_quote(quote_id="invalid_quote_id"), + "quote not found", + ) + + @pytest.mark.asyncio async def test_mint_invalid_blinded_message(ledger: Ledger): quote = await ledger.mint_quote(PostMintQuoteRequest(amount=8, unit="sat"))