mirror of
https://github.com/chatmail/core.git
synced 2026-04-18 05:56:31 +03:00
adding auto-copy-blob logic when preparing a message
This commit is contained in:
@@ -453,10 +453,10 @@ class TestOnlineAccount:
|
||||
|
||||
def send_and_receive_message():
|
||||
lp.sec("ac1: prepare and send attachment + text to ac2")
|
||||
msg = Message.new_empty(ac1, "file")
|
||||
msg.set_text("withfile")
|
||||
msg.set_file(p)
|
||||
message = chat.prepare_message(msg)
|
||||
msg1 = Message.new_empty(ac1, "file")
|
||||
msg1.set_text("withfile")
|
||||
msg1.set_file(p)
|
||||
message = chat.prepare_message(msg1)
|
||||
assert message.is_out_preparing()
|
||||
assert message.text == "withfile"
|
||||
chat.send_prepared(message)
|
||||
@@ -464,7 +464,7 @@ class TestOnlineAccount:
|
||||
lp.sec("ac2: receive message")
|
||||
ev = ac2._evlogger.get_matching("DC_EVENT_INCOMING_MSG|DC_EVENT_MSGS_CHANGED")
|
||||
assert ev[2] > const.DC_CHAT_ID_LAST_SPECIAL
|
||||
return ac2.get_message_by_id(ev[1])
|
||||
return ac2.get_message_by_id(ev[2])
|
||||
|
||||
msg = send_and_receive_message()
|
||||
assert msg.text == "withfile"
|
||||
|
||||
Reference in New Issue
Block a user