mirror of
https://github.com/python/cpython.git
synced 2026-05-07 11:01:09 +00:00
[3.13] Use correct markup in unittest.mock.reset_mock documentation (GH-119207) (GH-119250)
Use correct markup in unittest.mock.reset_mock documentation (GH-119207)
(cherry picked from commit 6b80a5b20f)
Co-authored-by: Tialo <65392801+Tialo@users.noreply.github.com>
This commit is contained in:
parent
054f1af811
commit
906f6cb656
1 changed files with 3 additions and 3 deletions
|
|
@ -414,13 +414,13 @@ the *new_callable* argument to :func:`patch`.
|
|||
|
||||
This can be useful where you want to make a series of assertions that
|
||||
reuse the same object. Note that :meth:`reset_mock` *doesn't* clear the
|
||||
return value, :attr:`side_effect` or any child attributes you have
|
||||
:attr:`return_value`, :attr:`side_effect` or any child attributes you have
|
||||
set using normal assignment by default. In case you want to reset
|
||||
*return_value* or :attr:`side_effect`, then pass the corresponding
|
||||
:attr:`return_value` or :attr:`side_effect`, then pass the corresponding
|
||||
parameter as ``True``. Child mocks and the return value mock
|
||||
(if any) are reset as well.
|
||||
|
||||
.. note:: *return_value*, and :attr:`side_effect` are keyword-only
|
||||
.. note:: *return_value*, and *side_effect* are keyword-only
|
||||
arguments.
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue