diff options
author | Tialo <65392801+Tialo@users.noreply.github.com> | 2024-05-20 19:17:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-20 19:17:44 (GMT) |
commit | 6b80a5b20f31a067bd1c374295608df5f1210f49 (patch) | |
tree | aa21be40f790a025f3050097944df9e8887820f6 /Doc/library/unittest.mock.rst | |
parent | a6fdb31b6714c9f3c65fefbb3fe388b2b139a75f (diff) | |
download | cpython-6b80a5b20f31a067bd1c374295608df5f1210f49.zip cpython-6b80a5b20f31a067bd1c374295608df5f1210f49.tar.gz cpython-6b80a5b20f31a067bd1c374295608df5f1210f49.tar.bz2 |
Use correct markup in unittest.mock.reset_mock documentation (GH-119207)
Diffstat (limited to 'Doc/library/unittest.mock.rst')
-rw-r--r-- | Doc/library/unittest.mock.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/unittest.mock.rst b/Doc/library/unittest.mock.rst index 9496c35..0c1cecf 100644 --- a/Doc/library/unittest.mock.rst +++ b/Doc/library/unittest.mock.rst @@ -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. |