2 ms·
> In Why your mock doesn’t work I explained this rule of mocking: > Mock where the object is used, not where it’s defined. For anyone looking for generic advi
by Izkata 1y ago
> In Why your mock doesn’t work I explained this rule of mocking:
> Mock where the object is used, not where it’s defined.
For anyone looking for generic advice, this is a quirk of python due to how imports work in that language (details in the linked post) and shouldn't be considered universal.