Release Notes
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
2.0.2 – 2024-08-01
Changed
BREAKING CHANGE Remove Python 3.9 from classifiers (ought to be done in 1.6.0).
Little improvements in documentation.
2.0.1 – 2024-03-15
Added
Quick check for the
ChangeLog.rst.
Fixed
Release GitHub workflow has been fixed to use modern versions of involved actions.
Do not override the path suffix-like part (separated by a dot) with a pattern filename extension.
2.0.0 – 2024-03-11
Added
Introduce
pm-pattern-file-fmtconfiguration parameter to give full control over the path to pattern files.A test can be marked with
@pytest.mark.expect_suffixto have an arbitrary suffix in the pattern filenames. Thepm-pattern-file-fmtformat string should have the{suffix}placeholder to make it work. See issue #22.Introduce
pm-mismatch-style.Show newlines in the
fullmismatch mode.
Fixed
BREAKING CHANGE The expectation files path has never used the
<test-module-name>component despite theREADME.rstclaimed. Existed projects could setpm-pattern-file-fmtto{class}/{fn}{callspec}to preserve backward compatibility.
Removed
BREAKING CHANGE The
pm-pattern-file-use-system-nameconfiguration parameter has been removed. Having{suffix}in thepm-pattern-file-fmtone can have a system name suffix whenever he needs it.
1.6.0 – 2024-02-29
Added
--pm-reveal-unused-filesoption to reveal unused pattern files.run test with pytest 7.x and 8.x.
1.5.1 – 2024-01-15
Fixed
Regression with Python less than 3.11.
1.5.0 – 2024-01-11
Added
Make it possible to use
expected_xxxwith parameterized tests. See issue #4.
1.4.0 – 2021-12-10
Added
Allow
assert expected_out.match(blah_blah) is True.
Changed
1.3.3 – 2019-06-27
Fixed
Fix backward compatibility with Python less than 3.6.
1.3.2 – 2019-06-26
Fixed
When a caller uses
re.MULTILINE, the plugin does not usesplitlines.
1.3.1 – 2019-04-04
Added
Show actual and expected output on failed
expected_out.match().
Changed
Update code for the modern
pytest(4.4.0) andPyYAML(5.1).
1.2.1 – 2018-03-30
Fixed
Update meta-data of the project for PyPi.
1.2.0 – 2018-03-30
Added
Add an INI-file option
pm-pattern-file-use-system-nameto control if the system name suffix is expected to be in a pattern filename. For example, this allows patterns with different CR/LF conventions to be created.Add
expected_yamlfixture to match YAML files.Introduce unit tests.
1.1.0 – 2018-03-28
Added
Use
pytest.skip()if no pattern file has been found or it contains an invalid regular expression;Added doc-strings to the fixtures, so pytest --fixtures would not complain.
Changed
Ensure full pattern match for
expected_xxx.matchnamed fixtures.
1.0.0 – 2017-08-25
Added
Add a pretty printer for failed assertions with the
expected_outfixture and equal comparison operator.