-
-
Notifications
You must be signed in to change notification settings - Fork 154
Closed
Description
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.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels