massdash.testing.PandasSnapshotExtension
- class massdash.testing.PandasSnapshotExtension
Bases:
SingleFileSnapshotExtensionHandles Pandas Snapshots. Snapshots are stored as raw files (pickled) and the dataframes are compared using pandas testing methods
- matches(*, serialized_data, snapshot_data)
Compares serialized data and snapshot data and returns whether they match.
- serialize(data: Any, **kwargs: Any) bytes
Serializes a python object / data structure into a string to be used for comparison with snapshot data from disk.