It turns out that you need to mock/patch the function within the module it's being imported into. from other_module.thing import Thing thing = ...
確定! 回上一頁