zaufi / pytest-matcher

A pytest plugin to match test output against patterns stored in files
https://pytest-matcher.readthedocs.io
2 stars 1 forks source link

feat(#22): support marking tests with `@pytest.mark.expect_suffix` #23

Closed zaufi closed 7 months ago

zaufi commented 7 months ago

Changes in this PR

A test can be marked with @pytest.mark.expect_suffix([args..., suffix=<arg>]) to have an arbitrary suffix in the pattern filenames. The pm-pattern-file-fmt format string should have the {suffix} placeholder to make it work.