Easy way to match captured `pytest` output against expectations stored in files
Project description
What is this
This is a pytest plugin that provides a couple of fixtures to match test output against patterns stored in files. Expectation files are placed in a base directory, and additional paths are derived from the test module name, test class name and test function name:
<base-dir>/<test-module-name>/[test-class-name/]<test-function-name>[[<callspec-id>]]
Keeping the expectation files separate from tests reduces the amount of test code and makes it possible to match more than just a few lines of output.
Documentation
The latest documentation can be found here.
See Also
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pytest_matcher-2.1.0.tar.gz.
File metadata
- Download URL: pytest_matcher-2.1.0.tar.gz
- Upload date:
- Size: 58.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9d3aa0e2f2d04280f00d00ddbac548f0129af44d73479b758d0eecb8da2cb427
|
|
| MD5 |
6545cf32c696077b0465dff350df06bb
|
|
| BLAKE2b-256 |
b71dca5b9d5ba972fb94de096d036dd99188c9c09632150d1b252eaba57cca6b
|
Provenance
The following attestation bundles were made for pytest_matcher-2.1.0.tar.gz:
Publisher:
release.yaml on zaufi/pytest-matcher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_matcher-2.1.0.tar.gz -
Subject digest:
9d3aa0e2f2d04280f00d00ddbac548f0129af44d73479b758d0eecb8da2cb427 - Sigstore transparency entry: 364535132
- Sigstore integration time:
-
Permalink:
zaufi/pytest-matcher@2c62817488d5c1f77635051073119bd41dc17b3c -
Branch / Tag:
refs/tags/release/2.1.0 - Owner: https://github.com/zaufi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@2c62817488d5c1f77635051073119bd41dc17b3c -
Trigger Event:
push
-
Statement type:
File details
Details for the file pytest_matcher-2.1.0-py3-none-any.whl.
File metadata
- Download URL: pytest_matcher-2.1.0-py3-none-any.whl
- Upload date:
- Size: 22.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfe6f28bd823e7d712b714e50ba702c293203bd312cc2226c5a4ec38e4840774
|
|
| MD5 |
9f573cbeda02c1146b65b88463fc160f
|
|
| BLAKE2b-256 |
2905ecfcc10590b840e4deacc80868ebce1cb05fd461734f06f19890a2b6f81c
|
Provenance
The following attestation bundles were made for pytest_matcher-2.1.0-py3-none-any.whl:
Publisher:
release.yaml on zaufi/pytest-matcher
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pytest_matcher-2.1.0-py3-none-any.whl -
Subject digest:
dfe6f28bd823e7d712b714e50ba702c293203bd312cc2226c5a4ec38e4840774 - Sigstore transparency entry: 364535151
- Sigstore integration time:
-
Permalink:
zaufi/pytest-matcher@2c62817488d5c1f77635051073119bd41dc17b3c -
Branch / Tag:
refs/tags/release/2.1.0 - Owner: https://github.com/zaufi
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@2c62817488d5c1f77635051073119bd41dc17b3c -
Trigger Event:
push
-
Statement type: