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

Child Hotkey Tests #2273

Merged
merged 2 commits into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions tests/e2e_tests/subcommands/stake/test_childkeys.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,11 +50,11 @@ async def test_set_revoke_children_multiple(local_chain, capsys):
bob_keypair, bob_exec_command, bob_wallet = setup_wallet("//Bob")
eve_keypair, eve_exec_command, eve_wallet = setup_wallet("//Eve")

# alice_exec_command(RegisterSubnetworkCommand, ["s", "create"])
# assert local_chain.query("SubtensorModule", "NetworksAdded", [1]).serialize()
alice_exec_command(RegisterSubnetworkCommand, ["s", "create"])
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", "3"])
exec_command(RegisterCommand, ["s", "register", "--netuid", "1"])

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

Expand Down Expand Up @@ -358,7 +358,7 @@ async def wait():
)

output = capsys.readouterr().out
assert "5FHn… │ 60.000%" in output
assert "5FHne… │ 60.000%" in output

await wait()

Expand Down Expand Up @@ -416,7 +416,7 @@ async def wait():
],
)
output = capsys.readouterr().out
assert "5HGj… │ 40.000%" in output
assert "5HGjW… │ 40.000%" in output

await wait()

Expand Down
Loading