diff --git a/nostr_dvm/utils/cashu_utils.py b/nostr_dvm/utils/cashu_utils.py index 2f4a2a5..41f6cda 100644 --- a/nostr_dvm/utils/cashu_utils.py +++ b/nostr_dvm/utils/cashu_utils.py @@ -1,7 +1,7 @@ import base64 import json -import httpx + import requests from cashu.core.models import GetInfoResponse, MintMeltMethodSetting from cashu.mint.ledger import Ledger @@ -32,18 +32,6 @@ async def cashu_wallet(): return wallet1 -async def test_info(ledger: Ledger): - response = httpx.get(f"{BASE_URL}/v1/info") - assert response.status_code == 200, f"{response.url} {response.status_code}" - assert ledger.pubkey - assert response.json()["pubkey"] == ledger.pubkey.serialize().hex() - info = GetInfoResponse(**response.json()) - assert info.nuts - assert info.nuts[4]["disabled"] is False - setting = MintMeltMethodSetting.parse_obj(info.nuts[4]["methods"][0]) - assert setting.method == "bolt11" - assert setting.unit == "sat" - async def get_cashu_balance(url): from cashu.wallet.wallet import Wallet