Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add "modify()" modifier to spies #25

Open
awestendorf opened this issue Jan 22, 2015 · 0 comments
Open

Add "modify()" modifier to spies #25

awestendorf opened this issue Jan 22, 2015 · 0 comments

Comments

@awestendorf
Copy link
Member

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: ... )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant