Skip to content
Open
Show file tree
Hide file tree
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
4 changes: 3 additions & 1 deletion tests/e2e_tests/test_coldkey_swap.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,7 @@ def test_coldkey_swap_dispute(local_chain, wallet_setup):
"Created for e2e coldkey swap dispute test",
"--no-prompt",
"--json-output",
"--no-mev-protection",
],
)
create_payload = json.loads(create_sn.stdout)
Expand Down Expand Up @@ -403,9 +404,10 @@ def test_coldkey_swap_dispute(local_chain, wallet_setup):
"--new-coldkey",
wallet_new.coldkeypub.ss58_address,
"--no-prompt",
"--no-mev-protection",
],
)
assert "The account is frozen" in execute.stderr, execute.stderr
assert "ColdkeySwapDisputed" in execute.stderr, execute.stderr

status_after = exec_command_bob(
command="wallet",
Expand Down
2 changes: 2 additions & 0 deletions tests/e2e_tests/test_stake_burn.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ def test_stake_burn(local_chain, wallet_setup):
str(amount_tao),
"--no-prompt",
"--json-output",
"--no-mev-protection",
],
)
stale_burn_ok_out = json.loads(stake_burn_result.stdout)
Expand Down Expand Up @@ -156,6 +157,7 @@ def test_stake_burn(local_chain, wallet_setup):
str(amount_tao),
"--no-prompt",
"--json-output",
"--no-mev-protection",
],
)
stake_burn_ratelimited = json.loads(stake_burn_ratelimited_result.stdout)
Expand Down
5 changes: 5 additions & 0 deletions tests/e2e_tests/test_stake_movement.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def test_stake_movement(local_chain, wallet_setup):
"https://testsubnet.com/logo.png",
"--no-prompt",
"--json-output",
"--no-mev-protection",
],
)
create_subnet_payload = json.loads(create_subnet_result.stdout)
Expand Down Expand Up @@ -248,6 +249,7 @@ def test_stake_movement(local_chain, wallet_setup):
"--chain",
"ws://127.0.0.1:9945",
"--no-prompt",
"--no-mev-protection",
],
)
assert "✅ Sent" in move_result.stdout
Expand Down Expand Up @@ -350,6 +352,7 @@ def test_stake_movement(local_chain, wallet_setup):
"--chain",
"ws://127.0.0.1:9945",
"--no-prompt",
"--no-mev-protection",
],
)
assert "✅ Sent" in transfer_result.stdout
Expand Down Expand Up @@ -481,6 +484,7 @@ def test_stake_movement(local_chain, wallet_setup):
"ws://127.0.0.1:9945",
"--no-prompt",
"--unsafe",
"--no-mev-protection",
],
)
assert "✅ Sent" in swap_result.stdout, swap_result.stderr
Expand Down Expand Up @@ -532,6 +536,7 @@ def test_stake_movement(local_chain, wallet_setup):
"--no-prompt",
"--rate-tolerance",
"0.1",
"--no-mev-protection",
],
)
assert "✅ Sent" in swap_with_limit_result.stdout, swap_with_limit_result.stderr
Expand Down
6 changes: 6 additions & 0 deletions tests/e2e_tests/test_staking_sudo.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def test_staking(local_chain, wallet_setup):
"https://testsubnet.com/logo.png",
"--no-prompt",
"--json-output",
"--no-mev-protection",
],
)
result_output = json.loads(result.stdout)
Expand Down Expand Up @@ -141,6 +142,7 @@ def test_staking(local_chain, wallet_setup):
"https://testsubnet.com/logo.png",
"--no-prompt",
"--json-output",
"--no-mev-protection",
],
)
result_output_second = json.loads(result_for_second_repo.stdout)
Expand Down Expand Up @@ -349,6 +351,7 @@ def test_staking(local_chain, wallet_setup):
"--no-prompt",
"--era",
"144",
"--no-mev-protection",
],
)
assert "✅ Finalized" in stake_to_enable_v3.stdout, stake_to_enable_v3.stderr
Expand Down Expand Up @@ -376,6 +379,7 @@ def test_staking(local_chain, wallet_setup):
"--no-prompt",
"--era",
"144",
"--no-mev-protection",
],
)
assert "✅ Finalized" in add_stake_single.stdout, add_stake_single.stderr
Expand Down Expand Up @@ -446,6 +450,7 @@ def test_staking(local_chain, wallet_setup):
"--no-prompt",
"--era",
"144",
"--no-mev-protection",
],
)
assert "✅ Finalized" in remove_stake.stdout
Expand Down Expand Up @@ -476,6 +481,7 @@ def test_staking(local_chain, wallet_setup):
"--era",
"32",
"--json-output",
"--no-mev-protection",
],
)
add_stake_multiple_output = json.loads(add_stake_multiple.stdout)
Expand Down
8 changes: 8 additions & 0 deletions tests/e2e_tests/test_unstaking.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def test_unstaking(local_chain, wallet_setup):
"--logo-url",
"https://testsubnet.com/logo.png",
"--no-prompt",
"--no-mev-protection",
],
)
assert "✅ Registered subnetwork with netuid: 2" in result.stdout
Expand Down Expand Up @@ -122,6 +123,7 @@ def test_unstaking(local_chain, wallet_setup):
"--logo-url",
"https://testsubnet.com/logo.png",
"--no-prompt",
"--no-mev-protection",
],
)
assert "✅ Registered subnetwork with netuid: 3" in result.stdout
Expand Down Expand Up @@ -238,6 +240,7 @@ def test_unstaking(local_chain, wallet_setup):
"--no-prompt",
"--era",
"144",
"--no-mev-protection",
],
)
assert "✅ Finalized" in stake_to_enable_v3.stdout, stake_to_enable_v3.stderr
Expand Down Expand Up @@ -266,6 +269,7 @@ def test_unstaking(local_chain, wallet_setup):
"0.5",
"--era",
"144",
"--no-mev-protection",
],
)
assert "✅ Finalized" in stake_result.stdout, stake_result.stderr
Expand Down Expand Up @@ -316,6 +320,7 @@ def test_unstaking(local_chain, wallet_setup):
"0.5",
"--era",
"144",
"--no-mev-protection",
],
)
assert "✅ Finalized" in partial_unstake_netuid_2.stdout
Expand Down Expand Up @@ -385,6 +390,7 @@ def test_unstaking(local_chain, wallet_setup):
"--verbose",
"--era",
"144",
"--no-mev-protection",
],
)

Expand Down Expand Up @@ -417,6 +423,7 @@ def test_unstaking(local_chain, wallet_setup):
"0.5",
"--era",
"144",
"--no-mev-protection",
],
)
assert "✅ Finalized" in stake_result.stdout
Expand All @@ -439,6 +446,7 @@ def test_unstaking(local_chain, wallet_setup):
"--no-prompt",
"--era",
"144",
"--no-mev-protection",
],
)
assert "✅ Included: Successfully unstaked all stakes from" in unstake_all.stdout
Expand Down
Loading