]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix docs for assert_called and assert_called_once (GH-15218)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 12 Aug 2019 08:18:55 +0000 (01:18 -0700)
committerChris Withers <chris@withers.org>
Mon, 12 Aug 2019 08:18:55 +0000 (09:18 +0100)
(cherry picked from commit f9590edfeae192ba95aadaee9460dc03a366c51a)

Co-authored-by: Ismail S <ismail-s@users.noreply.github.com>
Doc/library/unittest.mock.rst

index b76ae712a971b719e2ecd19fd28f3b8a153e8c07..36cc0c2fc4bdcc8d582203afed88ecedb211cc64 100644 (file)
@@ -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.