Skip to content

Commit ab4bd47

Browse files
committed
Document --mpl-baseline-relative
1 parent 2d035e1 commit ab4bd47

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

README.rst

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,11 @@ running tests by running ``pytest`` with::
188188

189189
pytest --mpl --mpl-baseline-path=baseline_images
190190

191-
This directory will be interpreted as being relative to where the tests
192-
are run. In addition, if both this option and the ``baseline_dir``
191+
This directory will be interpreted as being relative to where pytest
192+
is run. However, if the ``--mpl-baseline-relative`` option is also
193+
included, this directory will be interpreted as being relative to
194+
the current test directory.
195+
In addition, if both this option and the ``baseline_dir``
193196
option in the ``mpl_image_compare`` decorator are used, the one in the
194197
decorator takes precedence.
195198

0 commit comments

Comments
 (0)