Skip to main content

pytest-manifest

pytest-manifest is a plugin for the pytest testing framework. Its purpose is to provide an easy way to capture and assert test outputs.

Installation

To install pytest-manifest, use pip:

pip install pytest-manifest

Usage

pytest-manifest exposes a manifest fixture that loads the expected test result from a YAML file and can be asserted against a test output:

def test(manifest):
    assert manifest == "actual"

...or load a subset of the file using a key:

    assert manifest["key"] == "actual"

The manifest file can optionally be overwritten with the actual test result on failed assertions by passing the --overwrite-manifest/-O flag to pytest when executing tests:

pytest --overwrite-manifest test.py

Metadata

Release files for pytest-manifest 1.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 pytest-manifest 1.0
File Size Uploaded
pytest_manifest-1.0.tar.gz 9.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pytest-manifest 1.0
File Interpreter ABI Platform
pytest_manifest-1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / pytest_manifest-1.0.tar.gz

Download URL pytest_manifest-1.0.tar.gz
Size 9.4 kB
Tags Source
SHA-256 checksum
How to use checksums
2eb601b07d9f1138785382f06ab442af8de8b2fbf1b9f10edc18ae65f3fe78c3
BLAKE2b-256 checksum
How to use checksums
957c8099848c3e0f79a75d459fa2c6cede6e80c71aa27a91ef842e77a02e2100
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release files / pytest_manifest-1.0-py3-none-any.whl

Download URL pytest_manifest-1.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
48c5969d043e76bcdfb4bf22dc2b7b7b11373b4bc3bce0358143b23741941f89
BLAKE2b-256 checksum
How to use checksums
77930f159e6a3261d1ac384a9bd93d78d663a39960a61d612186a5f21659182b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.9

Release history Release notifications | RSS feed

This release

1.0 This release

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1

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