Skip to content

skip or ignore create updated snapshot in specified snapshot() #46

Closed Answered by 15r10nk
PorcoRosso85 asked this question in Q&A
Discussion options

You must be logged in to vote

No problem, I'm also not a native speaker.

You can use pytest -k test_function --inline-snapshot=create to create all snapshots in def 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 …

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@PorcoRosso85
Comment options

@15r10nk
Comment options

Answer selected by PorcoRosso85
@PorcoRosso85
Comment options

@15r10nk
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants