You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file containing the baseline hashes that will be compared to the test figures.
198
-
Both the kwarg option (``hash_library``) and the CLI option (``--mpl-hash-library``) are relative to the test file.
199
-
In this case, the CLI option takes precedence over the kwarg option.
198
+
The kwarg option (``hash_library``) is relative to the test file, while the INI option (``mpl-hash-library``) is relative to where pytest was run.
200
199
The file must be a JSON file in the same format as one generated by ``--mpl-generate-hash-library``.
201
200
If its directory does not exist, it will be created along with any missing parent directories.
202
201
202
+
.. attention::
203
+
204
+
For backwards compatibility, the CLI option (``--mpl-hash-library``) is relative to the test file.
205
+
Also, the CLI option takes precedence over the kwarg option, but the kwarg option takes precedence over the INI option as usual.
206
+
203
207
Configuring this option disables baseline image comparison.
204
208
If you want to enable both hash and baseline image comparison, which we call :doc:`"hybrid mode" <hybrid_mode>`, you must explicitly set the :ref:`baseline directory configuration option <baseline-dir>`.
0 commit comments