Is it possible to mock a module that's imported inside of a function?
for instance
def my_func(input):
import something_else
something_else.do_something(input)
I have an import inside of the function because of a circular dependency. Based on my googling I think I am SOL, but was wondering if anyone knew of way to make this possible.
I just want to verify that do_something gets called.