-
Notifications
You must be signed in to change notification settings - Fork 243
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
Mock Client? #148
Comments
I agree with what @dmathieu has said. Currently anything that's not a method on Would this be something on the roadmap for this library? |
I don't think this has been fully addressed - there are still some client functions that don't use the client struct - so we cannot override anything. eg: for v2 events - ManageEvent. I have opened a PR which addresses this: #241 |
In order to be able to write unit tests for a package using this one as a dependency, it would be nice to be able to mock it.
Making the
Client
into an interface, with astruct
implementing everything it does would allow creating additional structs which implement the interface too, to mock the behavior.The text was updated successfully, but these errors were encountered: