Skip to content

Add mocker.resetall() #23

@mathrick

Description

@mathrick

Having a mocker.resetall() method, similar to mocker.stopall(), would be very handy. Most of the time if I mock things, it's because I'm testing a side-effecting function which cannot be blackboxed effectively, and will want to walk through multiple code paths while checking that various callees were/were not called as appropriate. This commonly involves resetting the mocks, so not having to reset them individually would greatly increase the usefulness of mocker.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions