We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1424336 commit de8dc1dCopy full SHA for de8dc1d
Doc/library/unittest.mock.rst
@@ -408,6 +408,9 @@ the *new_callable* argument to :func:`patch`.
408
.. versionchanged:: 3.6
409
Added two keyword only argument to the reset_mock function.
410
411
+ .. versionchanged:: 3.9
412
+ :attr:`return_value` and :attr:`side_effect` apply to child mocks too.
413
+
414
This can be useful where you want to make a series of assertions that
415
reuse the same object. Note that :meth:`reset_mock` *doesn't* clear the
416
return value, :attr:`side_effect` or any child attributes you have
0 commit comments