Inline-snapshot

Latest version: v0.14.0

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

Scan your dependencies

Page 1 of 6

0.14.0

Removed

- removed the `"Programming Language :: Python :: Implementation :: PyPy"` classifier which was incorrect, because inline-snapshot can not fix snapshots on pypy.
inline-snapshot now enforces `--inline-snapshot=disable` when used with an implementation other than cpython, which allows it to be used in packages that want to support pypy.

Added

- command line shortcuts can be defined to simplify your workflows. `--review` and `--fix` are defined by default. See the [documentation](https://15r10nk.github.io/inline-snapshot/latest/configuration/) for details.

Changed

- `--inline-snapshot=create/fix/trim/update` will no longer show reports for other categories.
You can use `--inline-snapshot=create,report` if you want to use the old behaviour.

<a id='changelog-0.13.4'></a>

0.13.4

Changed

- use tomli instead of toml (130)

<a id='changelog-0.13.3'></a>

0.13.3

Fixed

- removed non-optional dirty-equals dependency (118)

<a id='changelog-0.13.2'></a>

0.13.2

Changed

- star-expressions in list or dicts where never valid and cause a warning now.

other=[2]
assert [5,2]==snapshot([5,*other])


Fixed

- A snapshot which contains an dirty-equals expression can now be compared multiple times.

python
def test_something():
greeting = "hello"
for name in ["alex", "bob"]:
assert (name, greeting) == snapshot((IsString(), "hello"))

0.13.1

Fix

- Use tomllib instead of PyPI toml on Python 3.11 and later

0.13.0

Feat

- added extra.prints
- 3.13 support
- strings with one line-break at the end become no multiline strings

Page 1 of 6

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.