Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pytest-metadata 3.0.0 breaking "Environment" #89

Open
hawflau opened this issue Jun 5, 2023 · 5 comments
Open

pytest-metadata 3.0.0 breaking "Environment" #89

hawflau opened this issue Jun 5, 2023 · 5 comments

Comments

@hawflau
Copy link

hawflau commented Jun 5, 2023

pytest-dev/pytest-metadata#70

We use pytest-json-report and recently found that the "Environement" section of the json reports are always empty.

From release note of pytest-metadata 3.0.0:

Use pytest.stash internally instead of _metadata

It seems pytest-json-report needs to be updated to cope with pytest-metadata's breaking change.

@eskerda
Copy link

eskerda commented Oct 12, 2023

Note to anyone stumbling on this issue and waiting for #90 getting merged, you can pin pytest-metadata to the last compatible version on your requirements.txt.

pytest-metadata==2.0.4
pytest-json-report

@alexandrul
Copy link

I don't have a private pypi server yet, so I've merged the #90 and #91 PRs in my fork and published a temporary package on pypi.

You can use it in requirements.txt after removing/commenting the original package:

pytest-json-report-wip==1.5.1

@andrewsiemer
Copy link

Hi @alexandrul, your fix seems to work for Linux + MacOS but not for Windows. I get an empty environment section still.

@alexandrul
Copy link

@andrewsiemer could you provide more info, please?

@andrewsiemer
Copy link

Hi @alexandrul, sorry for the ping, I seemed fix it by updating pytest-metadata.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants