Skip to content

Commit

Permalink
Add documentation on avoiding PytestReturnNotNoneWarning
Browse files Browse the repository at this point in the history
  • Loading branch information
ConorMacBride committed Nov 3, 2022
1 parent 8ce4878 commit e4dca96
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,11 @@ and the tests will pass if the images are the same. If you omit the
``--mpl`` option, the tests will run but will only check that the code
runs, without checking the output images.

If pytest-mpl is not installed, the image comparison tests will cause pytest
to show a warning, ``PytestReturnNotNoneWarning``. Installing pytest-mpl will
solve this issue. Alternativly, the image comparison tests can be deselected
by running pytest with ``-m "not mpl_image_compare"``.


Generating a Test Summary
^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
5 changes: 5 additions & 0 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,8 @@ against, the tests can be run with::
and the tests will pass if the images are the same. If you omit the
``--mpl`` option, the tests will run but will only check that the code
runs, without checking the output images.

If pytest-mpl is not installed, the image comparison tests will cause pytest
to show a warning, ``PytestReturnNotNoneWarning``. Installing pytest-mpl will
solve this issue. Alternativly, the image comparison tests can be deselected
by running pytest with ``-m "not mpl_image_compare"``.

0 comments on commit e4dca96

Please sign in to comment.