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 ?