You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
unittest's Mock.reset_mock() method has two keyword-only arguments return_value and side_effect, allowing to reset these attributes on mocks if desired (unittest doc). However pytest-mock's mocker.resetall() doesn't have these arguments, requiring to reset mocks individually and breaking resetall()'s usefulness in that case.
The return_value and side_effect keyword-only arguments could be added to resetall() and passed to reset_mock() calls, mimicking its signature and behavior.
The text was updated successfully, but these errors were encountered:
unittest
'sMock.reset_mock()
method has two keyword-only argumentsreturn_value
andside_effect
, allowing to reset these attributes on mocks if desired (unittest doc). Howeverpytest-mock
'smocker.resetall()
doesn't have these arguments, requiring to reset mocks individually and breakingresetall()
's usefulness in that case.The
return_value
andside_effect
keyword-only arguments could be added toresetall()
and passed toreset_mock()
calls, mimicking its signature and behavior.The text was updated successfully, but these errors were encountered: