Skip to content

Commit 90fda13

Browse files
committed
remove echo_and_quit test
1 parent 22ea230 commit 90fda13

File tree

2 files changed

+1
-22
lines changed

2 files changed

+1
-22
lines changed

python/examples/test_examples.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import echo_and_quit
21
import py
32
import 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()

python/src/deltachat/testplugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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):

0 commit comments

Comments
 (0)