We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The plugin uses pytest_warning_captured, which was deprecated in pytest 6. https://docs.pytest.org/en/stable/reference.html#pytest.hookspec.pytest_warning_captured
Looks like there's a new hook, pytest_warning_recorded, with similar enough API: https://docs.pytest.org/en/stable/reference.html#pytest.hookspec.pytest_warning_recorded
The text was updated successfully, but these errors were encountered:
I asked the pytest mailing list for options on how to deal with this.
Got this from Bruno Oliveira: "...
An alternative is to check if the new hook exists, like how we used to do in pytest-xdist:
https://github.com/pytest-dev/pytest-xdist/blob/7bf654775dcd2fef9c0ebafbea982b7d180b740e/src/xdist/remote.py#L142-L164
Where we implement one hook or the other, giving preference to the new hook when available. ... "
I think the xdist fix would work for pytest-json-report
Sorry, something went wrong.
651d54b
Prefer warning_recorded hook (close #55)
80be5ed
2914670
Thanks for the instructive report! Patched in the latest release.
No branches or pull requests
The plugin uses pytest_warning_captured, which was deprecated in pytest 6.
https://docs.pytest.org/en/stable/reference.html#pytest.hookspec.pytest_warning_captured
Looks like there's a new hook, pytest_warning_recorded, with similar enough API:
https://docs.pytest.org/en/stable/reference.html#pytest.hookspec.pytest_warning_recorded
The text was updated successfully, but these errors were encountered: