BSD Ports

devel/py-inline-snapshot 0.20.8 DragonFly

Create and update inline snapshots in your Python code

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
MIT
Categories
devel, python
Package size
101.2 KiB, 549.0 KiB installed

Description

Golden master/snapshot/approval testing library which puts the values right into your source code.

Key Features:

* Intuitive Semantics: snapshot(x) mirrors x for easy understanding. * Versatile Comparison Support: Equipped with x == snapshot(...), x <= snapshot(...), x in snapshot(...), and snapshot(...)[key]. * Enhanced Control Flags: Utilize various flags for precise control of which snapshots you want to change. * Preserved Black Formatting: Retains formatting consistency with Black formatting. * External File Storage: Store snapshots externally using outsource(data). * Seamless Pytest Integration: Integrated seamlessly with pytest for effortless testing. * Customizable: code generation can be customized with @customize_repr * Nested Snapshot Support: snapshots can contain other snapshots * Fuzzy Matching: Incorporate dirty-equals for flexible comparisons within snapshots. * Dynamic Snapshot Content: snapshots can contain non-constant values * Comprehensive Documentation: Access detailed documentation for complete guidance.

In the other systems

SystemPortVersion
DragonFlydevel/py-inline-snapshot0.20.8
FreeBSDdevel/py-inline-snapshot0.35.4
OpenBSDdevel/py-inline-snapshot0.35.3
NetBSDdevel/py-inline-snapshot0.35.4
MidnightBSDdevel/py-inline-snapshot0.34.1
HardenedBSDdevel/py-inline-snapshot0.35.4
GhostBSDdevel/py-inline-snapshot0.35.4

Install

Binary package:

pkg install py311-inline-snapshot

From DPorts:

cd /usr/dports/devel/py-inline-snapshot && make install clean

Dependencies

Run dependencies 6

No port depends on this one.