Skip to content

Commit 6ac4232

Browse files
committed
E2E test
1 parent d3d3950 commit 6ac4232

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/e2e_tests/test_staking_sudo.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* btcli subnets set-identity
1212
* btcli subnets get-identity
1313
* btcli subnets register
14+
* btcli subnets price
1415
* btcli stake add
1516
* btcli stake remove
1617
* btcli stake show
@@ -234,6 +235,25 @@ def test_staking(local_chain, wallet_setup):
234235
assert get_identity_output["logo_url"] == sn_logo_url
235236
assert get_identity_output["additional"] == sn_add_info
236237

238+
get_s_price = exec_command_alice(
239+
"subnets",
240+
"price",
241+
extra_args=[
242+
"--chain",
243+
"ws://127.0.0.1:9945",
244+
"--netuid",
245+
netuid,
246+
"--current",
247+
"--json-output",
248+
],
249+
)
250+
get_s_price_output = json.loads(get_s_price.stdout)
251+
assert str(netuid) in get_s_price_output.keys()
252+
stats = get_s_price_output[str(netuid)]["stats"]
253+
assert stats["name"] == sn_name
254+
assert stats["current_price"] == 0.0
255+
assert stats["market_cap"] == 0.0
256+
237257
# Start emissions on SNs
238258
for netuid_ in multiple_netuids:
239259
start_subnet_emissions = exec_command_alice(

0 commit comments

Comments
 (0)