From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 12 Aug 2019 08:18:55 +0000 (-0700) Subject: Fix docs for assert_called and assert_called_once (GH-15218) X-Git-Tag: v3.7.5rc1~193 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9286677538f3cd15aaad7628f4a95ab6aa97536b;p=thirdparty%2FPython%2Fcpython.git Fix docs for assert_called and assert_called_once (GH-15218) (cherry picked from commit f9590edfeae192ba95aadaee9460dc03a366c51a) Co-authored-by: Ismail S --- diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index b76ae712a971..36cc0c2fc4bd 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -262,7 +262,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. @@ -273,7 +273,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.