Inline-snapshot

Latest version: v0.20.6

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

Scan your dependencies

Page 1 of 9

0.20.6

Fixed

- Do not skip snapshots in conditional marked xfail tests.
python
pytest.mark.xfail(False, reason="...")
def test_a():
assert 5 == snapshot(3) <- this will be fixed


pytest.mark.xfail(True, reason="...")
def test_b():
assert 5 == snapshot(3) <- this not


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

0.20.5

Fixed

- correct normalization of "python3.9" to "python" in tests

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

0.20.4

Fixed

- Prevent a crash if a value cannot be copied and a UsageError is raised.

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

0.20.3

Fixed

- Use the black API directly to format python code.
This solves issues with the upcomming click 8.2.0 (202) and problems in multithreading (https://github.com/15r10nk/inline-snapshot/pull/193#issuecomment-2660393512).

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

0.20.2

Fixed

- snapshots inside tests which are marked as xfail are now ignored (184)

- Fixed a crash caused by the following code:

python
snapshot(tuple())
or
snapshot(dict())


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

0.20.1

Fixed

- Fixed a windows bug with the readline module (189)

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

Page 1 of 9

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.