]> granicus.if.org Git - python/commitdiff
Fix docs for assert_called and assert_called_once (#15197)
authorIsmail S <ismail-s@users.noreply.github.com>
Mon, 12 Aug 2019 06:57:03 +0000 (07:57 +0100)
committerChris Withers <chris@withers.org>
Mon, 12 Aug 2019 06:57:03 +0000 (01:57 -0500)
Doc/library/unittest.mock.rst

index 46e8ef38ab11bd80041ee0b80ba47736df7b3105..19e9715102bf3a5615495ee3695ffedf065b0d01 100644 (file)
@@ -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.