[Python-checkins] Fix docs for assert_called and assert_called_once (GH-15219)
Chris Withers
webhook-mailer at python.org
Mon Aug 12 04:19:51 EDT 2019
https://github.com/python/cpython/commit/2f087e279b94609073f630a86508b3a169c5e045
commit: 2f087e279b94609073f630a86508b3a169c5e045
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Chris Withers <chris at withers.org>
date: 2019-08-12T09:19:47+01:00
summary:
Fix docs for assert_called and assert_called_once (GH-15219)
(cherry picked from commit f9590edfeae192ba95aadaee9460dc03a366c51a)
Co-authored-by: Ismail S <ismail-s at users.noreply.github.com>
files:
M Doc/library/unittest.mock.rst
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst
index 46e8ef38ab11..19e9715102bf 100644
--- a/Doc/library/unittest.mock.rst
+++ b/Doc/library/unittest.mock.rst
@@ -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.
More information about the Python-checkins
mailing list