[issue21271] reset_mock needs parameters to also reset return_value and side_effect

Michael Foord report at bugs.python.org
Wed Apr 16 22:51:44 CEST 2014


New submission from Michael Foord:

unittest.mock.Mock.reset_mock deliberately doesn't reset the return_value and side_effect. It would be nice if it gained parameters so that it *could*.

----------
assignee: michael.foord
components: Library (Lib)
messages: 216588
nosy: kushal.das, michael.foord
priority: normal
severity: normal
stage: needs patch
status: open
title: reset_mock needs parameters to also reset return_value and side_effect
type: behavior
versions: Python 3.5

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue21271>
_______________________________________


More information about the Python-bugs-list mailing list