skip or ignore create updated snapshot in specified snapshot()
#46
-
skip or ignore create updated snapshot in specified I love this library. Thanks. |
Beta Was this translation helpful? Give feedback.
Answered by
15r10nk
Feb 19, 2024
Replies: 1 comment 4 replies
-
Thank you for your question. I'm not sure I understand exactly what you want to know. Please let me know if this answers your question. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No problem, I'm also not a native speaker.
You can use
pytest -k test_function --inline-snapshot=create
to create all snapshots indef test_function(): ...
(-k
is a pytest option).This is also mentioned in the documentation at the end of the Usage section https://15r10nk.github.io/inline-snapshot/#usage.
There is no way to specify which snapshot in a function should be updated.
little announcement:
I plan to create a kind of approval-ui for inline-snapshot to provide more control over which snapshots are changed.
This will become the first sponsor only feature for inline-snapshot.
The approval-ui could provide me some income to invest more time in my open source projects. I want to keep …