-
Notifications
You must be signed in to change notification settings - Fork 351
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2349 from opentensor/release/8.2.0
Release v8.2.0
- Loading branch information
Showing
8 changed files
with
48 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import bittensor | ||
import argparse | ||
|
||
|
||
def test_py_config_parsed_successfully_rust_wallet(): | ||
"""Verify that python based config object is successfully parsed with rust-based wallet object.""" | ||
# Preps | ||
parser = argparse.ArgumentParser() | ||
|
||
bittensor.wallet.add_args(parser) | ||
bittensor.subtensor.add_args(parser) | ||
bittensor.axon.add_args(parser) | ||
bittensor.logging.add_args(parser) | ||
|
||
config = bittensor.config(parser) | ||
|
||
# since we can't apply mocking to rust implewmented object then replace those directly | ||
config.wallet.name = "new_wallet_name" | ||
config.wallet.hotkey = "new_hotkey" | ||
config.wallet.path = "/some/not_default/path" | ||
|
||
wallet = bittensor.wallet(config=config) | ||
|
||
# Asserts | ||
assert wallet.name == config.wallet.name | ||
assert wallet.hotkey_str == config.wallet.hotkey | ||
assert wallet.path == config.wallet.path |