x in snapshot()
General¶
It is possible to check if a value is in a snapshot. The value of the generated snapshot will be a list of all tested values.
Example:
pytest options¶
It interacts with the following --inline-snapshot flags:
createcreate a new value if the snapshot value is undefined.fixadds a value to the list if it is missing.trimremoves a value from the list if it is not necessary.