From f4938465c305de3b9096b6d3b2634587a9edc676 Mon Sep 17 00:00:00 2001 From: link2xt Date: Thu, 23 Oct 2025 14:08:05 +0000 Subject: [PATCH] feat(deltachat-rpc-client): support multiple transports in resetup_account() --- .../src/deltachat_rpc_client/pytestplugin.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/pytestplugin.py b/deltachat-rpc-client/src/deltachat_rpc_client/pytestplugin.py index 2f8324277..a4d111108 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/pytestplugin.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/pytestplugin.py @@ -73,12 +73,11 @@ class ACFactory: def resetup_account(self, ac: Account) -> Account: """Resetup account from scratch, losing the encryption key.""" ac.stop_io() - addr = ac.get_config("addr") - password = ac.get_config("mail_pw") + transports = ac.list_transports() ac.remove() ac_clone = self.get_unconfigured_account() - params = {"addr": addr, "password": password} - ac_clone.add_or_update_transport(params) + for transport in transports: + ac_clone.add_or_update_transport(transport) return ac_clone def get_accepted_chat(self, ac1: Account, ac2: Account) -> Chat: