We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
Snapshots should be helpful in indicating at a glance what has changed.
Describe the solution you'd like
def test_my_dict(snapshot): my_dict = { "field_0": True, "field_1": "no_value", "nested": { "field_0": 1, }, } assert my_dict == snapshot(id="case1") my_dict["field_1"] = "yes_value" assert my_dict == snapshot(diff="case1") my_dict["nested"]["field_0"] = 2 assert my_dict == snapshot(id="case3", diff=1)
# name: test_my_dict.case_1 <class 'dict'> { 'field_0': True, 'field_1': 'no_value', 'nested': <class 'dict'> { 'field_0': 1 }, } --- # name: test_my_dict.1 'field_1': 'yes_value', --- # name: test_my_dict.case_3 'field_0': 2 ---
Describe alternatives you've considered
N/A
Additional context
The text was updated successfully, but these errors were encountered:
🎉 This issue has been resolved in version 2.1.0 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Is your feature request related to a problem? Please describe.
Snapshots should be helpful in indicating at a glance what has changed.
Describe the solution you'd like
Describe alternatives you've considered
N/A
Additional context
The text was updated successfully, but these errors were encountered: