Skip to content

Commit 9286677

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

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
@@ -262,7 +262,7 @@ the *new_callable* argument to :func:`patch`.
262262
used to set attributes on the mock after it is created. See the
263263
:meth:`configure_mock` method for details.
264264

265-
.. method:: assert_called(*args, **kwargs)
265+
.. method:: assert_called()
266266

267267
Assert that the mock was called at least once.
268268

@@ -273,7 +273,7 @@ the *new_callable* argument to :func:`patch`.
273273

274274
.. versionadded:: 3.6
275275

276-
.. method:: assert_called_once(*args, **kwargs)
276+
.. method:: assert_called_once()
277277

278278
Assert that the mock was called exactly once.
279279

0 commit comments

Comments
 (0)