Path to this page:
Subject: CVS commit: pkgsrc/devel/py-test-snapshot
From: Thomas Klausner
Date: 2024-07-29 09:07:10
Message id: 20240729070710.682DCFC74@cvs.NetBSD.org
Log Message:
devel/py-test-snapshot: import py-pytest-snapshot-0.9.0
A plugin for snapshot testing with pytest.
This library was inspired by jest's snapshot testing. Snapshot
testing can be used to test that the value of an expression does
not change unexpectedly. The added benefits of snapshot testing
are that
* They are easy to create.
* They are easy to update when the expected value of a test
changes.
Instead of manually updating tests when the expected value of an
expression changes, the developer simply needs to
* run pytest --snapshot-update to update the snapshot tests
* verify that the snapshot files contain the new expected results
* commit the snapshot changes to version control
Files: