strike one Account parameter, always do eventlogging

This commit is contained in:
holger krekel
2020-02-21 16:40:22 +01:00
parent 3c342339a1
commit f6d71ed8ef
2 changed files with 10 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
from __future__ import print_function
import os
import sys
import py
import pytest
import requests
@@ -7,6 +8,7 @@ import time
from deltachat import Account
from deltachat import const
from deltachat.capi import lib
from _pytest.monkeypatch import MonkeyPatch
import tempfile
@@ -43,11 +45,14 @@ def pytest_report_header(config, startdir):
summary = []
t = tempfile.mktemp()
m = MonkeyPatch()
try:
ac = Account(t, eventlogging=False)
m.setattr(sys.stdout, "write", lambda x: len(x))
ac = Account(t)
info = ac.get_info()
ac.shutdown()
finally:
m.undo()
os.remove(t)
summary.extend(['Deltachat core={} sqlite={}'.format(
info['deltachat_core_version'],