Skip to content

Commit

Permalink
Document --mpl-baseline-relative
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorMacBride committed Feb 5, 2022
1 parent 2d035e1 commit ab4bd47
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -188,8 +188,11 @@ running tests by running ``pytest`` with::

pytest --mpl --mpl-baseline-path=baseline_images

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

Expand Down

0 comments on commit ab4bd47

Please sign in to comment.