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

Don't override the path suffix-like part by a pattern filename extension #28

Closed xymaxim closed 7 months ago

xymaxim commented 7 months ago

Changes in this PR

Fix the case where the ending path suffix-like part (separated by a dot) was overwritten by a pattern filename extension. For example, without these changes, the test_example[with.dot] node ID is incorrectly transformed to the test_example[with.out filename. Tests with parameters, suffixes, and custom pattern filenames are affected by that.