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 examples how to mock objects #1936

Open
maciekbanas opened this issue Feb 28, 2024 · 2 comments
Open

Add examples how to mock objects #1936

maciekbanas opened this issue Feb 28, 2024 · 2 comments

Comments

@maciekbanas
Copy link

With 3.2.1 it is reported that great functions local_mocked_bindings() (really, I love them, started to switch from mockery) can mock also objects.
Still, there is no example how to do it in function docs. Can you provide it?

@hadley
Copy link
Member

hadley commented Apr 17, 2024

Like local_mocked_bindings(x = 1) ?

@maciekbanas
Copy link
Author

I'll try it :D

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

2 participants