Skip to content

Commit

Permalink
Fix docs for assert_called and assert_called_once (python#15197)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail-s authored and DinoV committed Jan 14, 2020
1 parent 476a8a4 commit e5d5ec6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Doc/library/unittest.mock.rst
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ the *new_callable* argument to :func:`patch`.
used to set attributes on the mock after it is created. See the
:meth:`configure_mock` method for details.

.. method:: assert_called(*args, **kwargs)
.. method:: assert_called()

Assert that the mock was called at least once.

Expand All @@ -297,7 +297,7 @@ the *new_callable* argument to :func:`patch`.

.. versionadded:: 3.6

.. method:: assert_called_once(*args, **kwargs)
.. method:: assert_called_once()

Assert that the mock was called exactly once.

Expand Down

0 comments on commit e5d5ec6

Please sign in to comment.