Skip to content

fix: get_snapshot_value returns old_value#337

Open
qdewaghe wants to merge 1 commit into15r10nk:mainfrom
qdewaghe:fix/get_snapshot_value
Open

fix: get_snapshot_value returns old_value#337
qdewaghe wants to merge 1 commit into15r10nk:mainfrom
qdewaghe:fix/get_snapshot_value

Conversation

@qdewaghe
Copy link

@qdewaghe qdewaghe commented Feb 7, 2026

Maybe I'm misunderstanding this but I would expect get_snapshot_value to return the snapshot value even if no assertion has been made yet.

Description

get_snapshot_value used to return ... if the snapshot was not asserted.
Now, it returns the old value if there is one. Returning the old value should be fine because if the new value does not match the old then a prior assertion has failed.

Related Issue(s)

#336

Checklist

  • I have tested my changes thoroughly (you can download the test coverage with hatch run cov:github).
  • I have added/updated relevant documentation.
  • I have added tests for new functionality (if applicable).
  • I have reviewed my own code for errors.
  • I have added a changelog entry with hatch run changelog:entry
  • I used semantic commits (feat: will cause a major and fix: a minor version bump)
  • You can squash you commits, otherwise they will be squashed during merge

`get_snapshot_value` used to return `...` if the snapshot was not
asserted.
Now, it returns the old value if there is one. Returning the old value
should be fine because if the new value does not match the old then a
prior assertion has failed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments