Skip to content

Commit

Permalink
docs(README): add info on call argument diff introspection
Browse files Browse the repository at this point in the history
  • Loading branch information
asfaltboy committed May 20, 2016
1 parent d2168be commit ed8f274
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,16 @@ your ``pytest.ini`` file:
[pytest]
mock_traceback_monkeypatch = false
The plugin also adds introspection information on differing call arguments when
calling the helper methods. This features catches `AssertionError` raised in
the method, and uses py.test's own `advanced assertions`_ to return a better
diff.

This is useful when asserting mock calls with many/nested arguments and trying
to quickly see the difference.

.. _advanced assertions: https://pytest.org/latest/assert.html


Requirements
============
Expand Down

0 comments on commit ed8f274

Please sign in to comment.