Mocking python function based on input arguments
Mocking python function based on input arguments Question: We have been using Mock for python for a while. Now, we have a situation in which we want to mock a function def foo(self, my_param): #do something here, assign something to my_result return my_result Normally, the way to mock this would be (assuming foo being part …
Total answers: 9