Skip to main content

Snapshot testing for pytest

Extracted snapshot testing lib for LocalStack.

This project is in a very early stage and will be both restructured and renamed.

Quickstart

To install the python and other developer requirements into a venv run:

make install

Configuration options

There's a few env vars that can be used with this project:

  • TEST_TARGET: Set to AWS_CLOUD to use an externally-deployed instance when running tests.
  • SNAPSHOT_LEGACY_REPORT: By default set to 0. Can be set to 1. This enables the legacy reporting output style.
  • SNAPSHOT_UDPATE: By default set to 0. Can be set to 1. This enables updating the snapshot file rather than comparing with its contents.
  • SNAPSHOT_RAW: By default set to 0. Can be set to 1. This outputs an additional snapshot file which contains the untransformed values.

Format code

We use black and isort as code style tools. To execute them, run:

make format

Build distribution

To build a wheel and source distribution, simply run

make dist

Metadata

Release files for localstack-snapshot 0.4.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for localstack-snapshot 0.4.0
File Size Uploaded
localstack_snapshot-0.4.0.tar.gz 31.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for localstack-snapshot 0.4.0
File Interpreter ABI Platform
localstack_snapshot-0.4.0-py3-none-any.whl Python 3 none any Details

Total release size: 58.9 kB

Release files / localstack_snapshot-0.4.0.tar.gz

Download URL localstack_snapshot-0.4.0.tar.gz
Size 31.8 kB
Tags Source
SHA-256 checksum
How to use checksums
eea59335ba41601e5dabd329e6131d166fad3a4ae2933d9389862bf06e2e8cc0
BLAKE2b-256 checksum
How to use checksums
3f0812beabf420d56d80eb8c972abf891146c5580ea98a4f501f984cff0c063d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release files / localstack_snapshot-0.4.0-py3-none-any.whl

Download URL localstack_snapshot-0.4.0-py3-none-any.whl
Size 27.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
384ab2ad55418c4c39a2b3f5705706cd8aa49ceda5ea10b25b8e43d1fa6163da
BLAKE2b-256 checksum
How to use checksums
fff2c1ec8499f162573c35ea2af0d478cebe096746aaf45b5e3f55b8d9c13a64
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 13, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.4.0 This release

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page