Inline-snapshot

Latest version: v0.20.2

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

Scan your dependencies

Page 8 of 8

0.3.0

BREAKING CHANGE

- values have to be copyable with `copy.deepcopy`

Fix

- snapshot the current value of mutable objects
python
l = [1]
assert l == snapshot([1]) old behaviour: snapshot([1, 2])
l.append(2)
assert l == snapshot([1, 2])

0.2.1

Fix

- black configuration files are respected

0.2.0

Feat

- `value <= snapshot()` to ensure that something gets smaller/larger over time (number of iterations of an algorithm you want to optimize for example),
- `value in snapshot()` to check if your value is in a known set of values,
- `snapshot()[key]` to generate new sub-snapshots on demand.

- convert strings with newlines to triple quoted strings
python
assert "a\nb\n" == snapshot(
"""a
b
"""
)

- preserve black formatting

0.1.2

Fix

- updated executing

0.1.1

Fix

- fixed typo in pytest plugin name

0.1.0

Feat

- first inline-snapshot version

Page 8 of 8

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.