add a test for failing e2e encryption and some info statement to hunt where the e2e encryption failure comes from

This commit is contained in:
holger krekel
2019-08-08 22:47:42 +02:00
parent 5d47d25c1e
commit 0be33eafb1
5 changed files with 121 additions and 6 deletions

View File

@@ -120,6 +120,8 @@ def acfactory(pytestconfig, tmpdir, request):
pytest.skip("specify a --liveconfig file to run tests with real accounts")
self.live_count += 1
configdict = self.configlist.pop(0)
if "e2ee_enabled" not in configdict:
configdict["e2ee_enabled"] = "1"
tmpdb = tmpdir.join("livedb%d" % self.live_count)
ac = Account(tmpdb.strpath, logid="ac{}".format(self.live_count))
ac._evlogger.init_time = self.init_time