@akiel: I guess you can use with-redefs for function you want to mock.
with-redefs
or there is something that I’m missing in your question
@rmuslimov: I never used with-redefs but I’ll try it. It could work. Thanks.