Within the plugin.ImageComparison.compare_image_to_hash_library method, should it not be the case that the mpl_image_compare marker hash_library kwarg option should have precedence over the --mpl-hash-library CLI argument?
|
hash_library_filename = self.hash_library or compare.kwargs.get('hash_library', None) |
|
hash_library_filename = (Path(item.fspath).parent / hash_library_filename).absolute() |
At the moment this isn't the case, however a similar precedence is supported for the baseline_dir decorator option e.g.,

Within the
plugin.ImageComparison.compare_image_to_hash_librarymethod, should it not be the case that thempl_image_comparemarkerhash_librarykwarg option should have precedence over the--mpl-hash-libraryCLI argument?pytest-mpl/pytest_mpl/plugin.py
Lines 520 to 521 in e387618
At the moment this isn't the case, however a similar precedence is supported for the
baseline_dirdecorator option e.g.,