File tree Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Expand file tree Collapse file tree 3 files changed +30
-1
lines changed Original file line number Diff line number Diff line change @@ -4545,7 +4545,7 @@ def sudo_proposals(
4545
4545
"""
4546
4546
self .verbosity_handler (quiet , verbose , json_output )
4547
4547
return self ._run_command (
4548
- sudo .proposals (self .initialize_chain (network ), verbose )
4548
+ sudo .proposals (self .initialize_chain (network ), verbose , json_output )
4549
4549
)
4550
4550
4551
4551
def sudo_senate_vote (
Original file line number Diff line number Diff line change 8
8
"""
9
9
10
10
import asyncio
11
+ import json
11
12
from .utils import call_add_proposal
12
13
13
14
@@ -103,6 +104,7 @@ def test_senate(local_chain, wallet_setup):
103
104
"--verbose" ,
104
105
],
105
106
)
107
+ print (">>>" , proposals .stdout , proposals .stderr )
106
108
proposals_output = proposals .stdout .splitlines ()[9 ].split ()
107
109
108
110
# Assert the hash is of correct format
@@ -118,6 +120,19 @@ def test_senate(local_chain, wallet_setup):
118
120
# Assert initial threshold is 3
119
121
assert proposals_output [1 ] == "3"
120
122
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
+
121
136
# Vote on the proposal by Bob (vote aye)
122
137
vote_aye = exec_command_bob (
123
138
command = "sudo" ,
Original file line number Diff line number Diff line change @@ -138,6 +138,20 @@ def test_staking(local_chain, wallet_setup):
138
138
stake_added = cleaned_stake [8 ].split ("│" )[3 ].strip ().split ()[0 ]
139
139
assert Balance .from_tao (float (stake_added )) >= Balance .from_tao (90 )
140
140
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
+
141
155
# Execute remove_stake command and remove all alpha stakes from Alice
142
156
remove_stake = exec_command_alice (
143
157
command = "stake" ,
You can’t perform that action at this time.
0 commit comments