mirror of
https://github.com/chatmail/relay.git
synced 2026-05-20 12:58:04 +00:00
add basic delta chat tests
This commit is contained in:
13
online-tests/test_deltachat.py
Normal file
13
online-tests/test_deltachat.py
Normal file
@@ -0,0 +1,13 @@
|
||||
|
||||
|
||||
class TestMailSending:
|
||||
def test_one_on_one(self, cmfactory, lp):
|
||||
ac1, ac2 = cmfactory.get_online_accounts(2)
|
||||
chat = cmfactory.get_accepted_chat(ac1, ac2)
|
||||
|
||||
lp.sec("ac1: prepare and send text message to ac2")
|
||||
msg1 = chat.send_text("message0")
|
||||
|
||||
lp.sec("wait for ac2 to receive message")
|
||||
msg2 = ac2._evtracker.wait_next_incoming_message()
|
||||
assert msg2.text == "message0"
|
||||
Reference in New Issue
Block a user