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:
parent
36583a4b3b
commit
711ab664b4
3 changed files with 36 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue