Skip to content

Commit 2f087e2

Browse files
miss-islingtonismail-s
authored andcommitted
Fix docs for assert_called and assert_called_once (GH-15219)
(cherry picked from commit f9590ed) Co-authored-by: Ismail S <[email protected]>
1 parent 5ba1cb0 commit 2f087e2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/unittest.mock.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ the *new_callable* argument to :func:`patch`.
286286
used to set attributes on the mock after it is created. See the
287287
:meth:`configure_mock` method for details.
288288

289-
.. method:: assert_called(*args, **kwargs)
289+
.. method:: assert_called()
290290

291291
Assert that the mock was called at least once.
292292

@@ -297,7 +297,7 @@ the *new_callable* argument to :func:`patch`.
297297

298298
.. versionadded:: 3.6
299299

300-
.. method:: assert_called_once(*args, **kwargs)
300+
.. method:: assert_called_once()
301301

302302
Assert that the mock was called exactly once.
303303

0 commit comments

Comments
 (0)