From 9075ccb7d728298bea5024c658b37c103bc667a1 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Wed, 6 May 2026 15:25:12 +0200 Subject: [PATCH] Try to fix test_webxdc_message(), test_send_and_receive_message_markseen(), test_mdn_asymmetric() --- deltachat-rpc-client/tests/test_folders.py | 4 ++-- python/tests/test_1_online.py | 11 ++++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/deltachat-rpc-client/tests/test_folders.py b/deltachat-rpc-client/tests/test_folders.py index b2dbb642a..bbf6d1520 100644 --- a/deltachat-rpc-client/tests/test_folders.py +++ b/deltachat-rpc-client/tests/test_folders.py @@ -14,7 +14,7 @@ def test_moved_markseen(acfactory, direct_imap, log): ac2.add_or_update_transport({"addr": addr, "password": password}) ac2.bring_online() - # Make sure that messages are not immediately auto-deleted: + # Make sure that messages are not immediately auto-deleted on the server: ac1.set_config("bcc_self", "1") ac2.set_config("bcc_self", "1") @@ -60,7 +60,7 @@ def test_moved_markseen(acfactory, direct_imap, log): def test_markseen_message_and_mdn(acfactory, direct_imap): ac1, ac2 = acfactory.get_online_accounts(2) - # Make sure that messages are not immediately auto-deleted: + # Make sure that messages are not immediately auto-deleted on the server: ac1.set_config("bcc_self", "1") ac2.set_config("bcc_self", "1") diff --git a/python/tests/test_1_online.py b/python/tests/test_1_online.py index 6b5418272..dd0afe7c6 100644 --- a/python/tests/test_1_online.py +++ b/python/tests/test_1_online.py @@ -162,6 +162,9 @@ def test_webxdc_message(acfactory, data, lp): ac1, ac2 = acfactory.get_online_accounts(2) chat = acfactory.get_accepted_chat(ac1, ac2) + # Make sure that messages are not immediately auto-deleted on the server: + ac2.set_config("bcc_self", "1") + lp.sec("ac1: prepare and send text message to ac2") msg1 = chat.send_text("message0") assert not msg1.is_webxdc() @@ -362,6 +365,9 @@ def test_send_and_receive_message_markseen(acfactory, lp): # make DC's life harder wrt to encodings ac1.set_config("displayname", "รค name") + # Make sure that messages are not immediately auto-deleted on the server: + ac2.set_config("bcc_self", "1") + # clear any fresh device messages ac1.get_device_chat().mark_noticed() ac2.get_device_chat().mark_noticed() @@ -506,6 +512,9 @@ def test_mdn_asymmetric(acfactory, lp): ac1.set_config("mdns_enabled", "1") ac2.set_config("mdns_enabled", "1") + # Make sure that the mdn is not immediately auto-deleted on the server:: + ac1.set_config("bcc_self", "1") + lp.sec("sending text message from ac1 to ac2") msg_out = chat.send_text("message1") @@ -1073,7 +1082,7 @@ def test_send_receive_locations(acfactory, lp): def test_delete_multiple_messages(acfactory, lp): ac1, ac2 = acfactory.get_online_accounts(2) - # Make sure that messages are not immediately auto-deleted: + # Make sure that messages are not immediately auto-deleted on the server: ac2.set_config("bcc_self", "1") chat12 = acfactory.get_accepted_chat(ac1, ac2)