You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
def return_value(self, *args, **kwargs):
"""Extracts the real value to be returned from the wrapping callable.
:return: The value the double should return when called.
"""
self._called()
> return self._return_value(*args, **kwargs)
E TypeError: 'coroutine' object is not callable
if you create an allowance on an async method and use and_return_result_of you get the above error. I think this specifically will only happen when the fake is expecting arguments as the default usage that and_return does hides the error by wrapping argument-less _return_value in a lambda
The text was updated successfully, but these errors were encountered:
if you create an allowance on an async method and use
and_return_result_of
you get the above error. I think this specifically will only happen when the fake is expecting arguments as the default usage thatand_return
does hides the error by wrapping argument-less_return_value
in a lambdaThe text was updated successfully, but these errors were encountered: