Snappiershot

Latest version: v1.1.0

Safety actively analyzes 681812 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.1.0

-----------------------
Features
* Support for Unit objects from `pint`.
* Support for classes with underlying `__slots__` objects.
* Support for classes that utilize `to_json()` and `from_json()`.
* Metadata arguments can be marked to be ignored when snapshotting.
Bug-Fixes
* Objects with `from_json()` are properly instantiated when comparing snapshots
* Objects of type `float` and `float64` are now properly compared
* Iterable objects and `numpy` iterable objects are now properly compared

1.0.1

-----------------------
Features
* Support for pathlib.Path objects.
Bug-Fixes
* Collections are now properly serialized by both
the `json.dump` and `json.dumps` methods.

1.0.0

-----------------------
Features
* Support of bytes objects
* Support of numpy arrays
* Support of pandas dataframes
Bug-Fixes
* Metadata for snapshots is now properly serialized.
* Recursive objects are handled (recursive parts are ignored).

0.2.0

-----------------------
Features
* Human-Readable diff within assertion errors.
* SnappierShot summary at the end of `pytest` session.
* Support for the `decimal.Decimal` type added.
Bug-Fixes
* Custom-serialized collections were not being asserted properly.

0.1.0

-----------------------
* Package published!

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.