1
0
Fork 0
mirror of https://github.com/deltachat/deltachat-core.git synced 2025-10-05 02:29:28 +02:00

add account.get_info()

This commit is contained in:
holger krekel 2019-03-21 11:45:09 +01:00
parent 36583a4b3b
commit 711ab664b4
No known key found for this signature in database
GPG key ID: 8E3B03A279B772D6
3 changed files with 36 additions and 1 deletions

View file

@ -5,6 +5,7 @@ import time
from deltachat import Account
from deltachat import props
from deltachat.capi import lib
import tempfile
def pytest_addoption(parser):
@ -15,6 +16,22 @@ def pytest_addoption(parser):
)
def pytest_report_header(config, startdir):
t = tempfile.mktemp()
try:
ac = Account(t)
info = ac.get_info()
del ac
finally:
os.remove(t)
return "Deltachat core={} rpgp={} openssl={} sqlite={}".format(
info["deltachat_core_version"],
info["rpgp_enabled"],
info['openssl_version'],
info['sqlite_version'],
)
@pytest.fixture(scope="session")
def data():
class Data: