From a16836362cb32fe00259550fc2bccd4f663019ab Mon Sep 17 00:00:00 2001 From: Believethehype <1097224+believethehype@users.noreply.github.com> Date: Tue, 13 Aug 2024 10:09:26 +0200 Subject: [PATCH] Update cashu_utils.py --- nostr_dvm/utils/cashu_utils.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) 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