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

Method get_next_liveconfig

python/src/deltachat/testplugin.py:426–438  ·  view source on GitHub ↗

Base function to get functional online configurations where we can make valid SMTP and IMAP connections with.

(self)

Source from the content-addressed store, hash-verified

424 acc.disable_logging()
425
426 def get_next_liveconfig(self):
427 """
428 Base function to get functional online configurations
429 where we can make valid SMTP and IMAP connections with.
430 """
431 configdict = next(self._liveconfig_producer).copy()
432
433 if self.pytestconfig.getoption("--strict-tls"):
434 # Enable strict certificate checks for online accounts
435 configdict["imap_certificate_checks"] = str(const.DC_CERTCK_STRICT)
436
437 assert "addr" in configdict and "mail_pw" in configdict
438 return configdict
439
440 def _get_cached_account(self, addr) -> Optional[Account]:
441 if addr in self.testprocess._addr2files:

Callers 6

run_bot_processMethod · 0.95
test_liveconfig_cachingFunction · 0.80
test_invalid_passwordMethod · 0.80
test_invalid_userMethod · 0.80
test_invalid_domainMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected