Skip to content

Commit

Permalink
bump: version 0.14.2 → 0.15.0
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Dec 10, 2024
1 parent 0a80f79 commit 724fe89
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 141 deletions.
41 changes: 41 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,45 @@

<a id='changelog-0.15.0'></a>
# 0.15.0 — 2024-12-10

## Added

- snapshots [inside snapshots](https://15r10nk.github.io/inline-snapshot/latest/eq_snapshot/#inner-snapshots) are now supported.

``` python
assert get_schema() == snapshot(
[
{
"name": "var_1",
"type": snapshot("int") if version < 2 else snapshot("string"),
}
]
)
```

- [runtime values](https://15r10nk.github.io/inline-snapshot/latest/eq_snapshot/#is) can now be part of snapshots.

``` python
from inline_snapshot import snapshot, Is

current_version = "1.5"
assert request() == snapshot(
{"data": "page data", "version": Is(current_version)}
)
```

- [f-strings](https://15r10nk.github.io/inline-snapshot/latest/eq_snapshot/#f-strings) can now also be used within snapshots, but are currently not *fixed* by inline-snapshot.

## Changed

- *dirty-equals* expressions are now treated like *runtime values* or *snapshots* within snapshots and are not modified by inline-snapshot.

## Fixed

- inline-snapshot checks now if the given command line flags (`--inline-snapshot=...`) are valid

- `Example(...).run_pytest(raise=snapshot(...))` uses now the flags from the current run and not the flags from the Example.

<a id='changelog-0.14.2'></a>
# 0.14.2 — 2024-12-07

Expand Down
38 changes: 0 additions & 38 deletions changelog.d/20241113_170718_15r10nk-git_fixes.md

This file was deleted.

39 changes: 0 additions & 39 deletions changelog.d/20241113_170944_15r10nk-git_fixes.md

This file was deleted.

62 changes: 0 additions & 62 deletions changelog.d/20241210_063450_15r10nk-git_container.md

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ keywords = []
name = "inline-snapshot"
readme = "README.md"
requires-python = ">=3.8"
version = "0.14.2"
version = "0.15.0"

[project.entry-points.pytest11]
inline_snapshot = "inline_snapshot.pytest_plugin"
Expand Down
2 changes: 1 addition & 1 deletion src/inline_snapshot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"Snapshot",
]

__version__ = "0.14.2"
__version__ = "0.15.0"

0 comments on commit 724fe89

Please sign in to comment.