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 provides a couple of fixtures to match test output against patterns stored in files. Expectations/pattern files are stored in a base directory, and additional paths are based on the test module name, test class name, and test function name:

<base-dir>/<test-module-name>/[test-class-name/]<test-function-name>[[<callspec-id>]]

Having output expectations/pattern files separate from tests helps to reduce the code of the latter and match the output more than just a few lines.

Documentation

The latest documentation could 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.0.1.tar.gz (53.7 kB view hashes)

Uploaded Source

Built Distribution

pytest_matcher-2.0.1-py3-none-any.whl (20.4 kB view hashes)

Uploaded Python 3

Supported by

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