mocking __call__ method with pytest
I’m trying to mock the __call__
method of a mock object so that when I call this object as object()
it returns a certain value. My code so far is:
I’m trying to mock the __call__
method of a mock object so that when I call this object as object()
it returns a certain value. My code so far is: