From 07236efc45a5c5c10ef64c0978e264adff8428a6 Mon Sep 17 00:00:00 2001 From: holger krekel Date: Tue, 23 Jun 2020 02:13:48 +0200 Subject: [PATCH] fix bcc_self to remain "0" for testrun/fivechat test accounts --- python/src/deltachat/testplugin.py | 1 + python/tests/test_account.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/python/src/deltachat/testplugin.py b/python/src/deltachat/testplugin.py index aa0f878fb..1f330596a 100644 --- a/python/src/deltachat/testplugin.py +++ b/python/src/deltachat/testplugin.py @@ -349,6 +349,7 @@ def acfactory(pytestconfig, tmpdir, request, session_liveconfig, data): if hasattr(acc, "_configtracker"): acc._configtracker.wait_finish() del acc._configtracker + acc.set_config("bcc_self", "0") if acc.is_configured() and not acc.is_started(): acc.start_io() print("{}: {} account was successfully setup".format( diff --git a/python/tests/test_account.py b/python/tests/test_account.py index 8ac43bffe..aedb90d0d 100644 --- a/python/tests/test_account.py +++ b/python/tests/test_account.py @@ -723,9 +723,9 @@ class TestOnlineAccount: def test_move_works_on_self_sent(self, acfactory): ac1 = acfactory.get_online_configuring_account(mvbox=True, move=True) - ac1.set_config("bcc_self", "1") ac2 = acfactory.get_online_configuring_account() acfactory.wait_configure_and_start_io() + ac1.set_config("bcc_self", "1") chat = acfactory.get_accepted_chat(ac1, ac2) chat.send_text("message1")