Skip to content

Commit

Permalink
add two random tests
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Sep 8, 2024
1 parent 4f976b4 commit 9c78713
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions tests/test_mint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
Expand Down

0 comments on commit 9c78713

Please sign in to comment.