inline-snapshot
Advanced tools
+7
-0
| <a id='changelog-0.32.5'></a> | ||
| # 0.32.5 — 2026-03-13 | ||
| ## Fixed | ||
| - Fixed a bug where tuples used as snapshot keys caused problems because they had the same hash value ([#358](https://github.com/15r10nk/inline-snapshot/issues/358)) | ||
| <a id='changelog-0.32.4'></a> | ||
@@ -3,0 +10,0 @@ # 0.32.4 — 2026-03-01 |
+1
-1
| Metadata-Version: 2.4 | ||
| Name: inline-snapshot | ||
| Version: 0.32.4 | ||
| Version: 0.32.5 | ||
| Summary: golden master/snapshot/approval testing library which puts the values right into your source code | ||
@@ -5,0 +5,0 @@ Project-URL: Changelog, https://15r10nk.github.io/inline-snapshot/latest/changelog/ |
@@ -20,3 +20,3 @@ from __future__ import annotations | ||
| @dataclass(frozen=True) | ||
| @dataclass(frozen=True, eq=False) | ||
| class CustomSequence(Custom, CustomSequenceTypes): | ||
@@ -23,0 +23,0 @@ value: list[Custom] = field(compare=False) |
@@ -5,5 +5,5 @@ is_insider = False | ||
| __version__ = "0.32.4" | ||
| __version__ = "0.32.5" | ||
| if is_insider: | ||
| __version__ += "." + insider_version |
@@ -38,3 +38,3 @@ from inline_snapshot import snapshot | ||
| def test_dict(): | ||
| snapshot(dict()) | ||
| assert {} == snapshot(dict()) | ||
| """ | ||
@@ -41,0 +41,0 @@ ).run_inline( |
@@ -697,2 +697,29 @@ import contextlib | ||
| def test_sub_snapshot_tuple_key(): | ||
| # see https://github.com/15r10nk/inline-snapshot/issues/358 | ||
| Example( | ||
| """\ | ||
| from inline_snapshot import snapshot | ||
| def test_a(): | ||
| for i in (1,2): | ||
| assert 5 == snapshot()[(i,)] | ||
| """ | ||
| ).run_inline( | ||
| ["--inline-snapshot=create"], | ||
| changed_files=snapshot( | ||
| { | ||
| "tests/test_something.py": """\ | ||
| from inline_snapshot import snapshot | ||
| def test_a(): | ||
| for i in (1,2): | ||
| assert 5 == snapshot({(1,): 5, (2,): 5})[(i,)] | ||
| """ | ||
| } | ||
| ), | ||
| ) | ||
| def test_sub_snapshot_empty_string(): | ||
@@ -699,0 +726,0 @@ |
Alert delta unavailable
Currently unable to show alert delta for PyPI packages.
3282999
0.02%14499
0.15%