-
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
Custom extension with _dirname outside the pytest session directory results in crash during (detailed) reporting #620
Comments
🎉 This issue has been resolved in version 3.0.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
Hey @noahnu, thanks for merging my fix for this quickly. Just checking: the 3.0.1 release referenced there doesn't seem to be published to PyPI yet. Is that expected? https://pypi.org/project/syrupy/#history |
Something went wrong with the release. I'll take a look today. https://github.com/tophat/syrupy/actions/runs/3090398312/jobs/4999313264 |
🎉 This issue has been resolved in version 3.0.1 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
@huonw the publish workflow is working now. I introduced a regression a while back that was causing the incorrect version to get published (a dev timestamp instead of semantic version). Latest version is v3.0.2 now. |
Cool, thank you! |
Describe the bug
Currently a custom extension can write snapshots to a new directory by overriding the
_dirname
property, however, this directory has to be a child of pytest's root directory, or else syrupy's reporting crashes with an error like:(This is a very niche bug, sorry. Doing this directory hacking is designed to allow building a work-around for pantsbuild/pants#11622.)
To reproduce
--snapshot-update
"two"
line--snapshot-update
or--snapshot-details
Output:
Expected behavior
Syrupy should behave as normal even with a 'weird' snapshot directory like this.
Screenshots
Environment (please complete the following information):
Additional context
Thanks for Syrupy!
The text was updated successfully, but these errors were encountered: