Skip to content

Commit 1694d4c

Browse files
committed
Add test
1 parent da8215c commit 1694d4c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

tests/e2e_tests/test_staking_sudo.py

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* btcli subnets create
1111
* btcli subnets set-identity
1212
* btcli subnets get-identity
13+
* btcli subnets set-symbol
1314
* btcli subnets register
1415
* btcli subnets price
1516
* btcli stake add
@@ -235,6 +236,33 @@ def test_staking(local_chain, wallet_setup):
235236
assert get_identity_output["logo_url"] == sn_logo_url
236237
assert get_identity_output["additional"] == sn_add_info
237238

239+
# set symbol
240+
set_symbol = exec_command_alice(
241+
"subnets",
242+
"set-symbol",
243+
extra_args=[
244+
"--wallet-path",
245+
wallet_path_alice,
246+
"--wallet-name",
247+
wallet_alice.name,
248+
"--hotkey",
249+
wallet_alice.hotkey_str,
250+
"--chain",
251+
"ws://127.0.0.1:9945",
252+
"--netuid",
253+
netuid,
254+
"--json-output",
255+
"--no-prompt",
256+
"‡",
257+
],
258+
)
259+
set_symbol_output = json.loads(set_symbol.stdout)
260+
assert set_symbol_output["success"] is True
261+
assert (
262+
set_symbol_output["message"]
263+
== f"Successfully updated SN{netuid}'s symbol to ‡."
264+
)
265+
238266
get_s_price = exec_command_alice(
239267
"subnets",
240268
"price",

0 commit comments

Comments
 (0)