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

Tests for metagraph, highlighting bug #2203

Open
wants to merge 9 commits into
base: staging
Choose a base branch
from
Prev Previous commit
Next Next commit
CHK Test
  • Loading branch information
opendansor committed Aug 29, 2024
commit 4379c596fa4a21c27c21cc9a08410be9e4c904d9
8 changes: 4 additions & 4 deletions tests/e2e_tests/subcommands/stake/test_childkeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ async def test_set_revoke_children_multiple(local_chain, capsys):
assert local_chain.query("SubtensorModule", "NetworksAdded", [1]).serialize()

for exec_command in [alice_exec_command, bob_exec_command, eve_exec_command]:
exec_command(RegisterCommand, ["s", "register", "--netuid", "4"])
exec_command(RegisterCommand, ["s", "register", "--netuid", "1"])

alice_exec_command(StakeCommand, ["stake", "add", "--amount", "100000"])

Expand All @@ -75,8 +75,8 @@ async def wait():
await wait()

children_with_proportions = [
[0.2, bob_keypair.ss58_address],
[0.1, eve_keypair.ss58_address],
[0.4, bob_keypair.ss58_address],
[0.2, eve_keypair.ss58_address],
]

# Test 1: Set multiple children
Expand All @@ -86,7 +86,7 @@ async def wait():
"stake",
"set_children",
"--netuid",
"2",
"1",
"--children",
f"{children_with_proportions[0][1]},{children_with_proportions[1][1]}",
"--hotkey",
Expand Down
Loading