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

2016-06-02 Thread Roundup Robot
Roundup Robot added the comment: New changeset b110dd3d6cea by Kushal Das in branch 'default': Issue #21271: Adds new keyword only parameters in reset_mock call https://hg.python.org/cpython/rev/b110dd3d6cea -- nosy: +python-dev ___ Python tracker

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

2016-06-02 Thread Emanuel Barry
Changes by Emanuel Barry : -- resolution: -> fixed stage: patch review -> resolved ___ Python tracker ___

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

2016-06-02 Thread Kushal Das
Kushal Das added the comment: Fixed in https://hg.python.org/cpython/rev/b110dd3d6cea -- status: open -> closed ___ Python tracker ___

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

2015-04-14 Thread Kushal Das
Kushal Das added the comment: Updated patch with the suggestions from Berker. -- Added file: http://bugs.python.org/file38989/issue21271v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21271

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

2015-04-14 Thread Kushal Das
Kushal Das added the comment: A patch without NEWS and whatsnew update. I will fill them before commit. The reset_mock function now has two parameters, return_value, and side_effect. Passing True value to any of these will reset that attribute. -- keywords: +patch Added file:

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

2015-04-14 Thread Berker Peksag
Berker Peksag added the comment: I left a couple of comments of Rietveld. -- nosy: +berker.peksag stage: needs patch - patch review type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21271

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

2015-04-12 Thread Kushal Das
Kushal Das added the comment: Working on it. Will submit the patch tomorrow. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21271 ___ ___

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

2015-03-09 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +Claudiu.Popa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21271 ___ ___ Python-bugs-list

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

2014-04-16 Thread Michael Foord
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,