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

Method get_pseudo_configured_account

python/src/deltachat/testplugin.py:481–496  ·  view source on GitHub ↗
(self, passphrase: Optional[str] = None)

Source from the content-addressed store, hash-verified

479 print("WARN: could not use preconfigured keys")
480
481 def get_pseudo_configured_account(self, passphrase: Optional[str] = None) -> Account:
482 # do a pseudo-configured account
483 ac = self.get_unconfigured_account(closed=bool(passphrase))
484 if passphrase:
485 ac.open(passphrase)
486 acname = ac._logid
487 addr = f"{acname}@offline.org"
488 ac.update_config(
489 {
490 "configured_addr": addr,
491 "displayname": acname,
492 },
493 )
494 self._preconfigure_key(ac)
495 self._acsetup.init_logging(ac)
496 return ac
497
498 def new_online_configuring_account(self, cloned_from=None, cache=False, **kwargs) -> Account:
499 if cloned_from is None:

Calls 5

_preconfigure_keyMethod · 0.95
init_loggingMethod · 0.80
openMethod · 0.45
update_configMethod · 0.45

Tested by

no test coverage detected