Fix docs for assert_called and assert_called_once (GH-15219)
(cherry picked from commit f9590edfea
)
Co-authored-by: Ismail S <ismail-s@users.noreply.github.com>
This commit is contained in:
parent
5ba1cb0393
commit
2f087e279b
|
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in New Issue