Skip to content

Commit 3a01de2

Browse files
tests/conftest.py: add some platform details to any junit .xml file.
1 parent fc56e45 commit 3a01de2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/conftest.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ def install_required_packages():
3838

3939
install_required_packages()
4040

41+
42+
@pytest.fixture(scope="session", autouse=True)
43+
def log_global_env_facts(record_testsuite_property):
44+
record_testsuite_property('platform.python_version()', platform.python_version())
45+
4146
# Need to import pymupdf only after we've installed pymupdf-fonts above,
4247
# because pymupdf imports pymupdf_fonts, and copes with import failure.
4348
import pymupdf

0 commit comments

Comments
 (0)