File tree Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Expand file tree Collapse file tree 2 files changed +1
-22
lines changed Original file line number Diff line number Diff line change 1- import echo_and_quit
21import py
32import pytest
43
@@ -12,24 +11,3 @@ def datadir():
1211 return datadir
1312 pytest .skip ("test-data directory not found" )
1413 return None
15-
16-
17- def test_echo_quit_plugin (acfactory , lp ):
18- lp .sec ("creating one echo_and_quit bot" )
19- botproc = acfactory .run_bot_process (echo_and_quit )
20-
21- lp .sec ("creating a temp account to contact the bot" )
22- (ac1 ,) = acfactory .get_online_accounts (1 )
23-
24- lp .sec ("sending a message to the bot" )
25- bot_chat = ac1 .qr_setup_contact (botproc .qr )
26- ac1 ._evtracker .wait_securejoin_joiner_progress (1000 )
27- bot_chat .send_text ("hello" )
28-
29- lp .sec ("waiting for the reply message from the bot to arrive" )
30- reply = ac1 ._evtracker .wait_next_incoming_message ()
31- assert reply .chat == bot_chat
32- assert "hello" in reply .text
33- lp .sec ("send quit sequence" )
34- bot_chat .send_text ("/quit" )
35- botproc .wait ()
Original file line number Diff line number Diff line change @@ -336,6 +336,7 @@ def bring_online(self):
336336 acc = self ._pop_config_success ()
337337 self ._onconfigure_start_io (acc )
338338 self ._account2state [acc ] = self .IDLEREADY
339+
339340 print ("finished, account2state" , self ._account2state )
340341
341342 def _pop_config_success (self ):
You can’t perform that action at this time.
0 commit comments