get_snapshot_value(snapshot_value, which='new')
¶
Extracts and returns the raw value stored inside a snapshot, removing all inline-snapshot-specific
wrappers such as those generated by external(), Is(), or snapshot().
This function is primarily intended for extension authors who need direct access to the value of a previously stored snapshot. For standard test assertions, prefer using the snapshot directly.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
snapshot_value
|
Snapshot[T]
|
The snapshot object from which to extract the value. |
required |
which
|
Literal['new', 'old']
|
can be:
|
'new'
|
Returns: The unwrapped value contained in the snapshot.