Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⬆️ update inline-snapshot requirement from ~=0.6.0 to ~=0.8.0 #449

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Apr 10, 2024

Updates the requirements on inline-snapshot to permit the latest version.

Release notes

Sourced from inline-snapshot's releases.

v0.8.0

What's Changed

Snapshot parts can now be replaced by dirty-equals expressions. These parts will not be changed if the user uses --inline-snapshot=fix. This should provide more flexibility if snapshots change frequently for unimportant reasons.

from inline_snapshot import snapshot
from dirty_equals import IsDatetime
import datetime
def get_data():
return {
"date": datetime.datetime.utcnow(),
"payload": "some data",
}
def test_function():
assert get_data() == snapshot(
{
"date": IsDatetime(),
"payload": "some data",
}
)

Documentation

Thank you to @​alexmojaki for the Idea.

Full Changelog: 15r10nk/inline-snapshot@v0.7.0...v0.8.0

Changelog

Sourced from inline-snapshot's changelog.

v0.8.0 (2024-04-09)

Feat

  • prevent dirty-equal values from triggering of updates
  • fix lists by calculating the alignment of the changed values
  • insert dict items
  • delete dict items
  • preserve not changed dict-values and list-elements

Fix

  • update with UndecidedValue
  • handle dicts with mulitple insertions and deletions
  • handle lists with mulitple insertions and deletions
  • fixed typing and coverage

Refactor

  • removed old needs* logic
  • removed get_result
  • use _get_changes api for DictValue
  • use _get_changes api for CollectionValue
  • use _get_changes api for MinMaxValue
  • use _get_changes
  • moved some functions

v0.7.0 (2024-02-27)

Feat

  • removed old --update-snapshots option

v0.6.1 (2024-01-28)

Fix

  • use utf-8 encoding to read and write source files

v0.6.0 (2023-12-10)

Feat

  • store snapshot values in external files

v0.5.2 (2023-11-13)

Fix

  • remove upper bound from dependencies in pyproject.toml

... (truncated)

Commits
  • 7625515 bump: version 0.7.0 → 0.8.0
  • 9419055 Merge pull request #56 from 15r10nk/preserve-values
  • 0f7802b docs: documented the preserving of snapshot parts
  • e4aa722 feat: prevent dirty-equal values from triggering of updates
  • 240b062 fix: update with UndecidedValue
  • 5de2e7e refactor: removed old needs* logic
  • 8df9145 refactor: removed get_result
  • e23228f refactor: use _get_changes api for DictValue
  • 3834096 refactor: use _get_changes api for CollectionValue
  • 070e64f refactor: use _get_changes api for MinMaxValue
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Updates the requirements on [inline-snapshot](https://github.com/15r10nk/inline-snapshots) to permit the latest version.
- [Release notes](https://github.com/15r10nk/inline-snapshots/releases)
- [Changelog](https://github.com/15r10nk/inline-snapshot/blob/main/CHANGELOG.md)
- [Commits](15r10nk/inline-snapshot@v0.6.0...v0.8.0)

---
updated-dependencies:
- dependency-name: inline-snapshot
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Apr 10, 2024
Copy link
Contributor Author

dependabot bot commented on behalf of github Apr 23, 2024

Superseded by #455.

@dependabot dependabot bot closed this Apr 23, 2024
@dependabot dependabot bot deleted the dependabot/pip/inline-snapshot-approx-eq-0.8.0 branch April 23, 2024 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants