Additionally report backend's version

To give more information we report the version additionally to the
backend's name.
This commit is contained in:
Philipp Albrecht 2021-11-08 15:01:00 +01:00
parent 7fcfb9b635
commit 8bb782332f
1 changed files with 8 additions and 1 deletions

View File

@ -239,7 +239,14 @@ def pytest_configure(config):
def pytest_report_header(config):
return f'backend: {config.backend}'
if config.backend == 'webkit':
backend_version = version.qWebKitVersion()
elif config.backend == 'webengine':
backend_version = version.qtwebengine_versions(avoid_init=True)
else:
raise utils.Unreachable(config.backend)
return f'backend: {config.backend} ({backend_version})'
@pytest.fixture(scope='session', autouse=True)