Skip to content

Fix error message for missing snapshot#23

Open
bblommers wants to merge 1 commit intomainfrom
fix-error-message-missing-state
Open

Fix error message for missing snapshot#23
bblommers wants to merge 1 commit intomainfrom
fix-error-message-missing-state

Conversation

@bblommers
Copy link
Copy Markdown
Contributor

When a key is marked as snapshotted, but not actually present in the snapshot.json, the following error is thrown:

No state for tests/mytest.py recorded. Please (re-)generate the snapshot for this test."

This is very confusing though, as there is a state for tests/mytest.py present - it is just missing the state for a specific key.

This PR updates the error message to make it clear that only the key is missing, instead of the entire snapshot.

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