@@ -268,15 +268,15 @@ def test_channel_3_print_filter_group(self):
268268 result = execute (["channel" , "print-filter-group" , self .org_id , self .group ], self .parser , self .conf )
269269 assert self .max_id in result
270270
271- """ TODO
271+
272272 def test_channel_4_claim (self ):
273273 execute (["account" , "deposit" , self .amount , "-y" , "-q" ], self .parser , self .conf )
274274 execute (["channel" , "extend-add" , self .max_id , "--amount" , self .amount , "-y" ], self .parser , self .conf )
275275 result1 = execute (["channel" , "claim-timeout" , f"{ self .max_id } " , "-y" ], self .parser , self .conf )
276276 execute (["account" , "deposit" , self .amount , "-y" , "-q" ], self .parser , self .conf )
277277 execute (["channel" , "extend-add" , self .max_id , "--amount" , self .amount , "-y" ], self .parser , self .conf )
278278 result2 = execute (["channel" , "claim-timeout-all" , "-y" ], self .parser , self .conf )
279- assert ("event: ChannelSenderClaim" in result1) and ("event: ChannelSenderClaim" in result2)"""
279+ assert ("event: ChannelSenderClaim" in result1 ) and ("event: ChannelSenderClaim" in result2 )
280280
281281
282282
@@ -303,10 +303,17 @@ def test_1_channel_open(self):
303303 execute (["account" , "deposit" , "0.001" , "-y" ], self .parser , self .conf )
304304 self .block = int (execute (["channel" , "block-number" ], self .parser , self .conf ))
305305 print (self .block )
306- result = execute (["channel" , "open" , self .org_id , "default_group" , "0.1 " , f"{ self .block + 100000 } " , "-y" ], self .parser , self .conf )
306+ result = execute (["channel" , "open" , self .org_id , "default_group" , "0.0001 " , f"{ self .block + 100000 } " , "-y" ], self .parser , self .conf )
307307 assert "#channel_id" in result
308308
309309 def test_2_service_call (self ):
310+ params_file = open ("detection.json" , "w+" )
311+ params_file .write ("""
312+ {
313+ "text": "Hello man try to answer me soon"
314+ }
315+ """ )
316+ params_file .close ()
310317 result = execute (["client" , "call" , self .org_id , self .service_id , self .group , self .method , self .params , "-y" ], self .parser , self .conf )
311318 assert "spam" in result
312319
0 commit comments