BSD Ports

devel/py-inline-snapshot 0.34.1 MidnightBSD

Create and update inline snapshots in your Python code

System
MidnightBSD
Repository
mports
Maintainer
[email protected]
Port added
Last update
Commit
8af06753b2
License
mit
Categories
devel, python

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
MidnightBSDdevel/py-inline-snapshot0.34.1
FreeBSDdevel/py-inline-snapshot0.35.4
OpenBSDdevel/py-inline-snapshot0.35.3
NetBSDdevel/py-inline-snapshot0.35.4
DragonFlydevel/py-inline-snapshot0.20.8
HardenedBSDdevel/py-inline-snapshot0.35.4
GhostBSDdevel/py-inline-snapshot0.35.4

Install

Binary package:

mport install ${PYTHON_PKGNAMEPREFIX}inline-snapshot

From mports:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}inline-snapshot>0:devel/py-inline-snapshot

Dependencies

As this port's Makefile names them.

Build 1

Runtime 5

Test 8

Build dependencies 1
Run dependencies 5

No port depends on this one.

Configuration

Options name: devel_inline-snapshot

OptionDefaultDescription
BLACKonFormat generated code with Black
DIRTY-EQUALSon
USES
python
Service scripts
none

Files

distinfo 1
FileSizeSHA256
inline_snapshot-0.34.1.tar.gz2.638769e+06f8af37876c42069b7c0ed73f64357ace482955c3225ebcd27f243197ecfbcb65
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
8af06753b2 Lucas Holt databases/rubygem-flipper-active_record-rails70: update to 1.3.6
Match the flipper-gitlab provider series so fake-qa can satisfy the gemspec flipper dependency. AI-Assisted-by: OpenAI Codex <[email protected]> Signed-off-by: Lucas Holt <[email protected]>