Inline-snapshot

Latest version: v0.10.2

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

Scan your dependencies

Page 3 of 4

0.5.0

Feat

- support 3.12

Fix

- do not change empty snapshot if it is not used

0.4.0

Feat

- escaped linebreak at the start/end of multiline strings

Fix

- added py.typed

0.3.2

Fix

- handle update flag in sub-snapshots correctly
- fixed some edge cases where sub-snapshots had problems with some flags
- string literal concatenation should trigger no update

0.3.1

Fix

- added `__all__` to inline_snapshot
- flags fix/trim/create/update are changing the matching snapshots

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

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.