dir_content_diff.pytest_plugin¶
Plugin for pytest.
Register this package as a pytest plugin. When run with pytest, the
dir_content_diff.assert_equal_trees()
function can use the following command line options of
pytest:
--dcd-export-formatted-data
to trigger the export of the formatted files.--dcd-export-suffix
to specify a custom suffix (the default is_FORMATTED
).
When this feature is triggered, the files that are processed by a comparator with a save
capability will be formatted and exported to a directory whose name is built from the compared
directory with a suffix added. The default suffix is _FORMATTED
and can be customized.
Functions
|
Add command line options for pytest. |
|
Process cmdline arguments. |
- dir_content_diff.pytest_plugin.pytest_addoption(parser)¶
Add command line options for pytest.
- dir_content_diff.pytest_plugin.pytest_configure(config)¶
Process cmdline arguments.