golden master/snapshot/approval testing library which puts the values right into your source code
Actively maintained. Last release 12 days ago, commits in 12 of the last 26 weeks. A safe choice.
pip install inline-snapshotInstallation
You can install "inline-snapshot" via pip:
pip install inline-snapshot
Key Features
-
support for normal assertions: inline-snapshot can now also fix normal assertions which do not use
snapshot()like:assert 1 + 1 == 3You can learn here more about this feature.
-
Intuitive Semantics:
snapshot(x)mirrorsxfor easy understanding. -
Versatile Comparison Support: Equipped with
x == snapshot(...), , , and .