-
Notifications
You must be signed in to change notification settings - Fork 37
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 incompatible with pytest-tldr #582
Comments
This is intended behaviour. You don't have a snapshot and so it's correctly reporting a test failure. If you expect snapshots to be generated, run pytest with the --snapshot-update cli flag. |
The attribute error at the bottom of your stack trace looks like a bug though. That should be a quick fix, but doesn't block you. |
That's the bug. It does block as that means I get exit code 1 in the test run, instead of 0 even if the test passes with a snapshot. |
|
It looks like the stack trace is only printed when using pytest-tldr though. Investigating |
Ah I see what you're saying. You get an exit code of 1 even when the snapshot is passing because of the tldr incompatibility. |
#583 should fix it. Essentially pytest-tldr was manually invoking a pytest hook which seems like bad practice. This was breaking an assumption around the hook order. |
🎉 This issue has been resolved in version 1.7.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Thanks!!! |
Describe the bug
When running pytest with syrupy I get an exception.
To reproduce
My pip freeze reports the following pytest related packages (I can include the entire pip freeze if that's important):
I created a new test file called
test_file.py
:When runnint with
pytest tests/test_file.py
I get the following output:Expected behavior
Expected the snapshot to be created.
Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: