Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

pytest-ditto-pickle

Extension plugin for pytest-ditto that records snapshots with Python's pickle.

pytest-ditto records snapshots as strict JSON by default. Use pickle only when a value can't be represented in JSON, or YAML, or one of the other recorders, and you accept the risk above.

Installation

pip install pytest-ditto-pickle

pytest-ditto has no pickle extra: install this package by name, deliberately.

Usage

Select the recorder explicitly on each test, with @ditto.pickle or its long form, @ditto.record("pickle"):

import datetime

import ditto


@ditto.pickle
def test_schedule(snapshot):
    schedule = {"days": {"mon", "wed"}, "start": datetime.time(9, 30)}
    assert snapshot(schedule, key="schedule") == schedule

Snapshots from pytest-ditto 1.x

pytest-ditto 1.x used pickle by default and saved snapshots with the .pkl extension. This recorder keeps that extension and file format, so a 1.x .pkl file loads unchanged.

pytest-ditto 2.0 names snapshot files differently, though, so 2.0 won't find a 1.x file where 1.x left it. See the pytest-ditto upgrade guide for the new names.

Metadata

Release files for pytest-ditto-pickle 2.0.0b1

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

Source distribution (sdist)

Source distribution for pytest-ditto-pickle 2.0.0b1
File Size Uploaded
pytest_ditto_pickle-2.0.0b1.tar.gz 4.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-ditto-pickle 2.0.0b1
File Interpreter ABI Platform
pytest_ditto_pickle-2.0.0b1-py3-none-any.whl Python 3 none any Details

Total release size: 7.8 kB

Release files / pytest_ditto_pickle-2.0.0b1.tar.gz

Download URL pytest_ditto_pickle-2.0.0b1.tar.gz
Size 4.0 kB
Tags Source
SHA-256 checksum
How to use checksums
37a38c618d3ad7b204fd038b1cb76ca5449fbf81715748cfdce22626540fb670
BLAKE2b-256 checksum
How to use checksums
8f612240556e49da962d9cb2f7f24581881d654ee151a25702531564203ba27d
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 Sep 27, 2026.

Transparency log

Release files / pytest_ditto_pickle-2.0.0b1-py3-none-any.whl

Download URL pytest_ditto_pickle-2.0.0b1-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1e1f4cdd125aa7f5bc8b25dfbc6c9a61ee9e95bcbc828db91313ada8a7b7b8c
BLAKE2b-256 checksum
How to use checksums
523ee864fd6cfce6a2ca940410a8f3ef4480d95cc710a48ece7ac3f69ec31326
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 Sep 27, 2026.

Transparency log
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