BSD Ports

devel/py-inline-snapshot 0.35.4 NetBSD

Golden master/snapshot/approval testing library

System
NetBSD
Repository
pkgsrc
Maintainer
[email protected]
Last update
Commit
76f2e6af86
License
mit
Categories
devel, python
Package size
196.3 KiB, 1163.9 KiB installed

Description

inline-snapshot can be used for different things:

* golden master/approval/snapshot testing. The idea is that you have a function with a currently unknown result and you want to write a tests, which ensures that the result does not change during refactoring.

* Compare things which are complex like lists with lot of numbers or complex data structures.

* Things which might change during the development like error messages.

inline-snapshot automates the process of recording, storing and updating the value you want to compare with. The value is converted with repr() and stored in the source file as argument of the snapshot() function.

In the other systems

The newest version among them is 0.35.4, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
NetBSDdevel/py-inline-snapshot0.35.4 newestnone known-[email protected]2026-10-16
FreeBSDdevel/py-inline-snapshot0.35.4 newestnone known-[email protected]2026-08-21
OpenBSDdevel/py-inline-snapshot0.35.3 behind since 2026-08-21no data-The OpenBSD ports mailing-list <[email protected]>2026-08-06
DragonFlydevel/py-inline-snapshot0.20.8 behind since 2026-07-05none known-[email protected]-
MidnightBSDdevel/py-inline-snapshot0.34.1 behind since 2026-08-21no data-[email protected]2026-07-05
HardenedBSDdevel/py-inline-snapshot0.35.4 newestno data-[email protected]-
GhostBSDdevel/py-inline-snapshot0.35.4 newestno data-[email protected]-

Compare across BSDs

Version history 2

  1. 0.36.1 76f2e6af86
  2. 0.35.4 91a2692c3d

Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.

Install

Binary package:

pkgin install py311-inline-snapshot

From pkgsrc:

cd /usr/pkgsrc/devel/py-inline-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.35.4
NetBSD 10.1 aarch640.32.7
SmartOS / illumos x86_640.36.1
macOS 15 arm640.36.1

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 6

No port depends on this one.

Configuration

No options to configure.

Service scripts
none
Flavors
py312-inline-snapshot-0.35.4, py313-inline-snapshot-0.35.4, py314-inline-snapshot-0.35.4

Commit history 2

DateCommitCreditsLog message
76f2e6af86 adam py-inline-snapshot: updated to 0.36.1
0.36.1 — 2026-10-12 Changed - Defer generating source representations until they are needed, improving performance when comparing matching snapshots with updates disabled. - Speed up snapshot conversion for literal constants, especially in large lists and dictionaries. - Built-in literal values are always managed; attempting to register their types as unmanaged raises `TypeError`. - Scope unmanaged type registrations to the current snapshot context, inheriting registrations from the parent context. - Speed up snapshot comparisons by avoiding unnecessary deep copies of immutable built-in values. - Speed up snapshot conversion by reading AST constant values directly instead of compiling and evaluating them. Fixed …
91a2692c3d adam py-inline-snapshot: updated to 0.35.4
0.35.4 — 2026-08-11 Fixed - Prevented `--inline-snapshot=trim` from changing snapshots when a test body fails or pytest is limited with `-k`, a test path, or a test node ID. Skipped tests and fixture teardown errors do not prevent trimming. A message now explains why trimming was disabled when it was requested implicitly. An explicit `--inline-snapshot=trim` overrides this safeguard. - Fixed a crash during session finalization when pytest's capture plugin is disabled.