File tree Expand file tree Collapse file tree 2 files changed +16
-15
lines changed
deltachat-rpc-client/tests Expand file tree Collapse file tree 2 files changed +16
-15
lines changed Original file line number Diff line number Diff line change 88from deltachat_rpc_client import Contact , EventType , Message
99
1010
11+ def test_move_works (acfactory ):
12+ ac1 , ac2 = acfactory .get_online_accounts (2 )
13+ ac2 .set_config ("mvbox_move" , "1" )
14+ ac2 .bring_online ()
15+
16+ chat = ac1 .create_chat (ac2 )
17+ chat .send_text ("message1" )
18+
19+ # Message is moved to the movebox
20+ ac2 .wait_for_event (EventType .IMAP_MESSAGE_MOVED )
21+
22+ # Message is downloaded
23+ msg = ac2 .wait_for_incoming_msg ().get_snapshot ()
24+ assert msg .text == "message1"
25+
26+
1127def test_reactions_for_a_reordering_move (acfactory , direct_imap ):
1228 """When a batch of messages is moved from Inbox to DeltaChat folder with a single MOVE command,
1329 their UIDs may be reordered (e.g. Gmail is known for that) which led to that messages were
Original file line number Diff line number Diff line change @@ -269,21 +269,6 @@ def test_enable_mvbox_move(acfactory, lp):
269269 assert ac2 ._evtracker .wait_next_incoming_message ().text == "message1"
270270
271271
272- def test_move_works (acfactory ):
273- ac1 = acfactory .new_online_configuring_account ()
274- ac2 = acfactory .new_online_configuring_account (mvbox_move = True )
275- acfactory .bring_accounts_online ()
276- chat = acfactory .get_accepted_chat (ac1 , ac2 )
277- chat .send_text ("message1" )
278-
279- # Message is moved to the movebox
280- ac2 ._evtracker .get_matching ("DC_EVENT_IMAP_MESSAGE_MOVED" )
281-
282- # Message is downloaded
283- ev = ac2 ._evtracker .get_matching ("DC_EVENT_INCOMING_MSG" )
284- assert ev .data2 > dc .const .DC_CHAT_ID_LAST_SPECIAL
285-
286-
287272def test_move_avoids_loop (acfactory ):
288273 """Test that the message is only moved from INBOX to DeltaChat.
289274
You can’t perform that action at this time.
0 commit comments