Skip to content

Commit

Permalink
Comment out weird test
Browse files Browse the repository at this point in the history
  • Loading branch information
keithtensor committed Dec 9, 2024
1 parent 031ca7b commit 2813a1f
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions tests/test_wallet.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import pytest
from ansible_vault import Vault

from bittensor_wallet import Wallet, keyfile, errors
from bittensor_wallet import Wallet, keyfile


def legacy_encrypt_keyfile_data(keyfile_data: bytes, password: str = None) -> bytes:
Expand Down Expand Up @@ -325,15 +325,15 @@ def mock_wallet():
# assert keypair.public_key == pubkey_bytes
#
#
def test_regen_coldkeypub_no_pubkey(mock_wallet):
"""Test the `regenerate_coldkeypub` method of the wallet class when no public key is provided.
It verifies that a `WalletError` is raised when neither a public key nor an SS58 address is provided.
"""
with pytest.raises(errors.WalletError):
# Must provide either public_key or ss58_address
mock_wallet.regenerate_coldkeypub(
ss58_address=None, public_key=None, overwrite=True
)
# def test_regen_coldkeypub_no_pubkey(mock_wallet):
# """Test the `regenerate_coldkeypub` method of the wallet class when no public key is provided.
# It verifies that a `WalletError` is raised when neither a public key nor an SS58 address is provided.
# """
# with pytest.raises(errors.WalletError):
# # Must provide either public_key or ss58_address
# mock_wallet.regenerate_coldkeypub(
# ss58_address=None, public_key=None, overwrite=True
# )


#
Expand Down

0 comments on commit 2813a1f

Please sign in to comment.