Skip to main content

Easy way to match captured `pytest` output against expectations stored in files

Project description

What is this

PyPI - Version Run Tests Result

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pytest_matcher-2.1.0.tar.gz (58.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pytest_matcher-2.1.0-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

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

Hashes for pytest_matcher-2.1.0.tar.gz
Algorithm Hash digest
SHA256 9d3aa0e2f2d04280f00d00ddbac548f0129af44d73479b758d0eecb8da2cb427
MD5 6545cf32c696077b0465dff350df06bb
BLAKE2b-256 b71dca5b9d5ba972fb94de096d036dd99188c9c09632150d1b252eaba57cca6b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_matcher-2.1.0.tar.gz:

Publisher: release.yaml on zaufi/pytest-matcher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for pytest_matcher-2.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfe6f28bd823e7d712b714e50ba702c293203bd312cc2226c5a4ec38e4840774
MD5 9f573cbeda02c1146b65b88463fc160f
BLAKE2b-256 2905ecfcc10590b840e4deacc80868ebce1cb05fd461734f06f19890a2b6f81c

See more details on using hashes here.

Provenance

The following attestation bundles were made for pytest_matcher-2.1.0-py3-none-any.whl:

Publisher: release.yaml on zaufi/pytest-matcher

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page