MCPcopy Create free account
hub / github.com/chatmail/core / introduce_each_other

Method introduce_each_other

python/src/deltachat/testplugin.py:602–614  ·  view source on GitHub ↗
(self, accounts, sending=True)

Source from the content-addressed store, hash-verified

600 return ac1.create_chat(ac2)
601
602 def introduce_each_other(self, accounts, sending=True):
603 to_wait = []
604 for i, acc in enumerate(accounts):
605 for acc2 in accounts[i + 1 :]:
606 chat = self.get_accepted_chat(acc, acc2)
607 if sending:
608 chat.send_text("hi")
609 to_wait.append(acc2)
610 acc2.create_chat(acc).send_text("hi back")
611 to_wait.append(acc)
612 for acc in to_wait:
613 acc.log("waiting for incoming message")
614 acc._evtracker.wait_next_incoming_message()
615
616
617@pytest.fixture()

Calls 6

get_accepted_chatMethod · 0.95
send_textMethod · 0.45
appendMethod · 0.45
create_chatMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected