mirror of
https://github.com/chatmail/core.git
synced 2026-04-05 23:22:11 +03:00
introduce DC_EVENT_NEW_BLOB_FILE event and test for it
This commit is contained in:
@@ -229,7 +229,9 @@ class TestOfflineChat:
|
||||
chat1.send_image(path="notexists")
|
||||
fn = data.get_path("d.png")
|
||||
lp.sec("sending image")
|
||||
chat1.account._evlogger.consume_events()
|
||||
msg = chat1.send_image(fn)
|
||||
chat1.account._evlogger.get_matching("DC_EVENT_NEW_BLOB_FILE")
|
||||
assert msg.is_image()
|
||||
assert msg
|
||||
assert msg.id > 0
|
||||
|
||||
Reference in New Issue
Block a user