BSD Ports

devel/py-test-snapshot 0.9.0nb1 NetBSD

Plugin for snapshot testing with pytest

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
License
mit
Categories
devel, python
Package size
18.9 KiB, 76.1 KiB installed

Description

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

Install

Binary package:

pkgin install py311-test-snapshot

From pkgsrc:

cd /usr/pkgsrc/devel/py-test-snapshot && make install clean

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

RepositoryVersion
NetBSD 10.1 x86_640.9.0nb1
NetBSD 10.1 aarch640.9.0nb1
SmartOS / illumos x86_640.9.0nb1
macOS 15 arm640.9.0nb1

Dependencies

Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
py312-test-snapshot-0.9.0nb1, py313-test-snapshot-0.9.0nb1, py314-test-snapshot-0.9.0nb1