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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytest_manifest-1.0.tar.gz | 9.4 kB | Without provenance | Details for pytest_manifest-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytest_manifest-1.0-py3-none-any.whl | Python 3 | none | any | Details for pytest_manifest-1.0-py3-none-any.whl |
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
|
Security for pytest-manifest 1.0
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.