8000 Fix docs for assert_called and assert_called_once (#15197) · python/cpython@f9590ed · GitHub
[go: up one dir, main page]

Skip to content

Commit f9590ed

Browse files
ismail-scjw296
authored andcommitted
Fix docs for assert_called and assert_called_once (#15197)
1 parent f03b4c8 commit f9590ed

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)
0