MCPcopy Create free account
hub / github.com/chatmail/core / prepare_account_from_liveconfig

Method prepare_account_from_liveconfig

python/src/deltachat/testplugin.py:519–527  ·  view source on GitHub ↗
(self, configdict)

Source from the content-addressed store, hash-verified

517 return ac
518
519 def prepare_account_from_liveconfig(self, configdict) -> Account:
520 ac = self.get_unconfigured_account()
521 assert "addr" in configdict and "mail_pw" in configdict, configdict
522 configdict.setdefault("bcc_self", False)
523 configdict.setdefault("sync_msgs", False)
524 ac.update_config(configdict)
525 self._acsetup._account2config[ac] = configdict
526 self._preconfigure_key(ac)
527 return ac
528
529 def wait_configured(self, account) -> None:
530 """Wait until the specified account has successfully completed configure."""

Callers 2

run_bot_processMethod · 0.95

Calls 3

_preconfigure_keyMethod · 0.95
update_configMethod · 0.45

Tested by

no test coverage detected