Skip to content

Guidance on "un-spying" a method #259

@melvinkcx

Description

@melvinkcx

Hi, I couldn't quite figure out how to un-spy a spied method yet. I'm not sure if it's even possible after browsing through the source code.

spy_foo = mocker.spy(module, "foo")

# do something

# how to un-spy `spy_foo`?

Any ideas or suggestions on how to achieve it? 🙏

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions