From 4abf1ba8b09e2dd0fb14775d1e9e7174aecf7952 Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Sat, 29 Oct 2022 23:01:25 +0200 Subject: [PATCH] turn off tor for tests --- .github/workflows/tests.yml | 1 + tests/test_mint.py | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a3e2ccf..6939d4f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,6 +35,7 @@ jobs: LIGHTNING: False MINT_HOST: localhost MINT_PORT: 3338 + TOR: False run: | poetry run pytest tests --cov-report xml --cov cashu - name: Upload coverage to Codecov diff --git a/tests/test_mint.py b/tests/test_mint.py index a949b0f..f175ce6 100644 --- a/tests/test_mint.py +++ b/tests/test_mint.py @@ -1,11 +1,9 @@ -import time from typing import List import pytest import pytest_asyncio from cashu.core.base import BlindedMessage, Proof -from cashu.core.helpers import async_unwrap, sum_proofs from cashu.core.migrations import migrate_databases SERVER_ENDPOINT = "http://localhost:3338" @@ -13,8 +11,7 @@ SERVER_ENDPOINT = "http://localhost:3338" import os from cashu.core.db import Database -from cashu.core.settings import MAX_ORDER, MINT_PRIVATE_KEY -from cashu.lightning.lnbits import LNbitsWallet +from cashu.core.settings import MAX_ORDER from cashu.mint import migrations from cashu.mint.ledger import Ledger