Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ~/ in wallet path #67

Merged
merged 2 commits into from
Nov 14, 2024
Merged

Conversation

roman-opentensor
Copy link
Contributor

tests are included

@roman-opentensor roman-opentensor requested a review from a team November 14, 2024 20:23
@roman-opentensor roman-opentensor self-assigned this Nov 14, 2024
w = Wallet()

# Asserts
assert str(w) == "Wallet (Name: 'default', Hotkey: 'default', Path: '~/.bittensor/wallets/')"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
assert str(w) == "Wallet (Name: 'default', Hotkey: 'default', Path: '~/.bittensor/wallets/')"

w = Wallet(name="test_wallet", hotkey="test_hotkey", path="/tmp/tests_wallets/")

# Asserts
assert str(w) == f"Wallet (Name: '{wallet_name}', Hotkey: '{wallet_hotkey}', Path: '{wallet_path}')"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
assert str(w) == f"Wallet (Name: '{wallet_name}', Hotkey: '{wallet_hotkey}', Path: '{wallet_path}')"

@roman-opentensor roman-opentensor merged commit ec1f067 into staging Nov 14, 2024
10 checks passed
@roman-opentensor roman-opentensor deleted the fix/roman/fix-tilda-in-wallet-path branch November 14, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants