Base function to get functional online configurations where we can make valid SMTP and IMAP connections with.
(self)
| 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: |
no outgoing calls
no test coverage detected