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
This would allow spying, and then the user could modify the returned value. This would be very useful where the spied method performs a complicated task (e.g. fetch auth token) and the return data only needs slight modification for the test (e.g. change TTL).
It would look something like this:
spy( method ).modify( lambda method_return: ... )
The text was updated successfully, but these errors were encountered:
This would allow spying, and then the user could modify the returned value. This would be very useful where the spied method performs a complicated task (e.g. fetch auth token) and the return data only needs slight modification for the test (e.g. change TTL).
It would look something like this:
The text was updated successfully, but these errors were encountered: