Skip to content

mocker.patch on functionΒ #117

@ulyssejdv

Description

@ulyssejdv

Hi,
When I want to mock a function in a module, the mock not work if I use this syntax :

from mypkg.mymodule import myfunction

  • myfunction()

but work with this one :

from mypkg import mymodule
+mymodule.myfunction()

Any idea ?

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