Skip to content

Commit 337c04e

Browse files
committed
temporary
1 parent 3a92f61 commit 337c04e

File tree

3 files changed

+30
-1
lines changed

3 files changed

+30
-1
lines changed

bittensor_cli/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4545,7 +4545,7 @@ def sudo_proposals(
45454545
"""
45464546
self.verbosity_handler(quiet, verbose, json_output)
45474547
return self._run_command(
4548-
sudo.proposals(self.initialize_chain(network), verbose)
4548+
sudo.proposals(self.initialize_chain(network), verbose, json_output)
45494549
)
45504550

45514551
def sudo_senate_vote(

tests/e2e_tests/test_senate.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"""
99

1010
import asyncio
11+
import json
1112
from .utils import call_add_proposal
1213

1314

@@ -103,6 +104,7 @@ def test_senate(local_chain, wallet_setup):
103104
"--verbose",
104105
],
105106
)
107+
print(">>>", proposals.stdout, proposals.stderr)
106108
proposals_output = proposals.stdout.splitlines()[9].split()
107109

108110
# Assert the hash is of correct format
@@ -118,6 +120,19 @@ def test_senate(local_chain, wallet_setup):
118120
# Assert initial threshold is 3
119121
assert proposals_output[1] == "3"
120122

123+
json_proposals = exec_command_bob(
124+
command="sudo",
125+
sub_command="proposals",
126+
extra_args=[
127+
"--chain",
128+
"ws://127.0.0.1:9945",
129+
"--json-output"
130+
]
131+
)
132+
json_proposals_outout = json.loads(json_proposals.stdout)
133+
134+
assert False, json_proposals_outout
135+
121136
# Vote on the proposal by Bob (vote aye)
122137
vote_aye = exec_command_bob(
123138
command="sudo",

tests/e2e_tests/test_staking_sudo.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,20 @@ def test_staking(local_chain, wallet_setup):
138138
stake_added = cleaned_stake[8].split("│")[3].strip().split()[0]
139139
assert Balance.from_tao(float(stake_added)) >= Balance.from_tao(90)
140140

141+
show_stake_json = exec_command_alice(
142+
command="stake",
143+
sub_command="list",
144+
extra_args=[
145+
"--wallet-path",
146+
wallet_path_alice,
147+
"--wallet-name",
148+
wallet_alice.name,
149+
"--chain",
150+
"ws://127.0.0.1:9945",
151+
"--json-output"
152+
],
153+
)
154+
141155
# Execute remove_stake command and remove all alpha stakes from Alice
142156
remove_stake = exec_command_alice(
143157
command="stake",

0 commit comments

Comments
 (0)