Skip to content

Add a "defaults" dict to mocker to allow changing defaults that are passed to mock.patch #55

Open
@remcohaszing

Description

@remcohaszing

I always use autospec=True in when patching objects. I think this helps to uncover bad mock calls.

Perhaps it would be nice to be able to set this as a default value. E.g.:

def pytest_configure(mocker_config):
    mocker_config.default_autospec = True

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