@@ -101,8 +101,6 @@ def test_version(self):
101101 spec .loader .exec_module (version_module )
102102 self .version = version_module .__version__
103103 result = execute (["version" ], self .parser , self .conf )
104- print ("Version of CLI: " , self .version )
105- print (result )
106104 assert f"version: { self .version } " in result
107105
108106
@@ -119,7 +117,6 @@ def test_deposit(self):
119117 execute (["account" , "deposit" , f"{ self .amount } " , "-y" , "-q" ], self .parser , self .conf )
120118 result = execute (["account" , "balance" ], self .parser , self .conf )
121119 self .balance_2 = float (result .split ("\n " )[3 ].split ()[1 ])
122- print (round (self .balance_2 , 5 ), " == " , round (self .balance_1 , 5 ), " + " , self .amount )
123120 assert round (self .balance_2 , 5 ) == round (self .balance_1 , 5 ) + self .amount
124121
125122 def test_withdraw (self ):
@@ -128,7 +125,6 @@ def test_withdraw(self):
128125 execute (["account" , "withdraw" , f"{ self .amount } " , "-y" , "-q" ], self .parser , self .conf )
129126 result = execute (["account" , "balance" ], self .parser , self .conf )
130127 self .balance_2 = float (result .split ("\n " )[3 ].split ()[1 ])
131- print (round (self .balance_2 , 5 ), " == " , round (self .balance_1 , 5 ), " - " , self .amount )
132128 assert round (self .balance_2 , 5 ) == round (self .balance_1 , 5 ) - self .amount
133129
134130 def test_transfer (self ):
@@ -230,7 +226,6 @@ def test_metadata_init(self):
230226 self .conf )
231227 execute (["organization" , "add-group" , self .group_name , ADDR , self .endpoint ], self .parser , self .conf )
232228 result = execute (["organization" , "validate-metadata" ], self .parser , self .conf )
233- print (result )
234229 assert self .success_msg in result
235230
236231 def tearDown (self ):
@@ -245,31 +240,30 @@ def setUp(self):
245240 self .password = "12345"
246241 self .group = "default_group"
247242 data = execute (["channel" , "print-filter-group" , self .org_id , "default_group" ], self .parser , self .conf )
248- print ("data:" , data )
249243 first_column = []
250244 for line in data .splitlines ()[2 :]:
251245 parts = line .split ()
252246 if parts and parts [0 ].lstrip ("#" ).isdigit ():
253247 first_column .append (int (parts [0 ]))
254248 self .max_id = str (max (first_column ))
255- print (self .max_id )
256249
257250 def test_channel_1_extend (self ):
258251 execute (["account" , "deposit" , self .amount , "-y" , "-q" ], self .parser , self .conf )
259252 result1 = execute (["channel" , "extend-add" , self .max_id , "--amount" , self .amount , "-y" ], self .parser , self .conf )
260253 """ TODO KeyError: 'channelId'
261254 result2 = execute(["channel", "extend-add-for-org", self.org_id, "default_group", "--channel-id", f"{self.max_id}", "-y"], self.parser, self.conf)
262255 print(result2)"""
263- print (self .max_id )
264256 assert f"channelId: " , self .max_id in result1
265257
266258 def test_channel_2_print_filter_sender (self ):
267259 result = execute (["channel" , "print-filter-sender" ], self .parser , self .conf )
268- """TODO
269- result3 = execute(["channel", "print-filter-group-sender", self.org_id, self.group], self.parser, self.conf)
270- print("res3: ", result3)"""
271- assert self .max_id in result
272- """and self.max_id in result3"""
260+ print (result )
261+ assert "Channels for sender: " , ADDR in result
262+
263+ def test_channel_3_print_filter_group_sender (self ):
264+ result = execute (["channel" , "print-filter-group-sender" , self .org_id , self .group ], self .parser , self .conf )
265+ assert "Channels for sender: " , ADDR in result
266+
273267
274268 def test_channel_3_print_filter_group (self ):
275269 result = execute (["channel" , "print-filter-group" , self .org_id , self .group ], self .parser , self .conf )
0 commit comments