From 59df97944fe79e4c01dc9233d0a9c3285f73b979 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Wed, 2 Oct 2019 14:35:01 +0300 Subject: [PATCH] Enable strict certificate checks for test online accounts --- python/tests/conftest.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/python/tests/conftest.py b/python/tests/conftest.py index ba537ca19..8ce4ebdfb 100644 --- a/python/tests/conftest.py +++ b/python/tests/conftest.py @@ -157,6 +157,11 @@ def acfactory(pytestconfig, tmpdir, request, session_liveconfig): self.live_count += 1 if "e2ee_enabled" not in configdict: configdict["e2ee_enabled"] = "1" + + # Enable strict certificate checks for online accounts + configdict["imap_certificate_checks"] = "1" + configdict["smtp_certificate_checks"] = "1" + tmpdb = tmpdir.join("livedb%d" % self.live_count) ac = self.make_account(tmpdb.strpath, logid="ac{}".format(self.live_count)) ac._evlogger.init_time = self.init_time