Skip to content

Commit

Permalink
clean files
Browse files Browse the repository at this point in the history
  • Loading branch information
Ouziel committed Jan 29, 2025
1 parent 5177522 commit 3a13a65
Show file tree
Hide file tree
Showing 37 changed files with 12 additions and 24,351 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import pytest


@pytest.mark.skip()
def test_book(skip):

Check warning

Code scanning / pylint

Unused argument 'skip'. Warning

Unused argument 'skip'.
pass
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@

import pytest
import requests

from counterpartycore.lib.utils import database
from counterpartycore.test import conftest # noqa: F401

LOCAL_API_URL = "http://localhost:4000"

Expand Down Expand Up @@ -97,11 +95,8 @@ def get_block_hashes_api_wtf(api_url, block_index):
return response["block"][0]["ledger_hash"], response["block"][0]["txlist_hash"]


def test_compare_hashes(skip):
if skip:
pytest.skip("Skipping compare hashes test.")
return

@pytest.mark.skip()
def test_compare_hashes():
# get last blocks
local_block_index, _ = get_last_block_api_v2(LOCAL_API_URL)
print(f"Local block index: {local_block_index}")
Expand Down Expand Up @@ -158,11 +153,8 @@ def test_compare_hashes(skip):
# MAINNET_DB_DIR = "/home/ouziel/.local/share/counterparty/"


def test_mainnet_api_db(skip):
if skip:
pytest.skip("Skipping mainnet API database test.")
return

@pytest.mark.skip()
def test_mainnet_api_db():
ledger_db = database.get_db_connection(
f"{MAINNET_DB_DIR}counterparty.db", read_only=True, check_wal=False
)
Expand Down Expand Up @@ -206,11 +198,8 @@ def test_mainnet_api_db(skip):
print(f"Checked {i} balances")


def test_mainnet_healthz(skip):
if skip:
pytest.skip("Skipping healthz test.")
return

@pytest.mark.skip()
def test_mainnet_healthz():
response = requests.get(f"{LOCAL_API_URL}/healthz", timeout=10)
print(response.json())
assert response.status_code == 200
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import pytest
from counterparty_rs import indexer

from counterpartycore.lib.backend import rsfetcher

TEST_DB_PATH = "/tmp/counterparty_test_db" # noqa: S108
Expand Down
14 changes: 0 additions & 14 deletions counterparty-core/counterpartycore/test/book_test.py

This file was deleted.

Loading

0 comments on commit 3a13a65

Please sign in to comment.