Pytest-snapshot

Latest version: v0.9.0

Safety actively analyzes 681914 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 1 of 3

0.9.0

What's Changed
* Internal methods are hidden from stack traces when a snapshot test fails. This makes the error message clearer to read. https://github.com/joseph-roitman/pytest-snapshot/pull/55
* Error messages are more helpful for developers unfamiliar with the library. https://github.com/joseph-roitman/pytest-snapshot/pull/56


**Full Changelog**: https://github.com/joseph-roitman/pytest-snapshot/compare/v0.8.1...v0.9.0

0.8.1

What's Changed
Fixed a bug where `snapshot.assert_match` would not raise exceptions when running pytest with `--assert=plain` and without `--snapshot-update`. https://github.com/joseph-roitman/pytest-snapshot/pull/50



**Full Changelog**: https://github.com/joseph-roitman/pytest-snapshot/compare/v0.8.0...v0.8.1

0.8.0

What's Changed
* Support nested dictionaries in assert_match_dir. https://github.com/joseph-roitman/pytest-snapshot/pull/48
* Improve invalid snapshot name recognition. https://github.com/joseph-roitman/pytest-snapshot/pull/43


**Full Changelog**: https://github.com/joseph-roitman/pytest-snapshot/compare/v0.7.0...v0.8.0

0.7.0

This version uses PEP-517 packaging and removes a dependency.

0.6.3

This version raises errors with useful messages when trying to snapshot test values that are not supported by the library.
Attempting to snapshot test a string containing '\r' will now fail.

0.6.2

This version raises ValueError in assert_match_dir when snapshot file names are invalid.

Page 1 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.