X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=bindings%2Fpython-cffi%2Ftests%2Fconftest.py;fp=bindings%2Fpython-cffi%2Ftests%2Fconftest.py;h=674c72187078507b57edb0070a73aef635397ac7;hp=aa940947ca56502d93a73e71e5085047f8201e98;hb=a950aa28449feef76246ad2b64224fd72e2e574c;hpb=fbb8e1f4301f0993cf0b477b8e0e40d2273e3523 diff --git a/bindings/python-cffi/tests/conftest.py b/bindings/python-cffi/tests/conftest.py index aa940947..674c7218 100644 --- a/bindings/python-cffi/tests/conftest.py +++ b/bindings/python-cffi/tests/conftest.py @@ -10,6 +10,13 @@ import os import pytest +def pytest_report_header(): + vers = subprocess.run(['notmuch', '--version'], stdout=subprocess.PIPE) + which = subprocess.run(['which', 'notmuch'], stdout=subprocess.PIPE) + return ['{} ({})'.format(vers.stdout.decode(errors='replace').strip(), + which.stdout.decode(errors='replace').strip())] + + @pytest.fixture(scope='function') def tmppath(tmpdir): """The tmpdir fixture wrapped in pathlib.Path."""