We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In version v0.4.0 I used to be able to mock requests to GetOAuth* methods by overriding the SLACK_API variable: slack.SLACK_API = "some-test-url"
v0.4.0
SLACK_API
slack.SLACK_API = "some-test-url"
Now this isn't possible anymore, because these methods build the request with APIURL which is a constant:
APIURL
// GetOAuthResponseContext retrieves OAuth response with custom context func GetOAuthResponseContext(...) (resp *OAuthResponse, err error) { ... if err = postForm(ctx, client, APIURL+"oauth.access", ...); err != nil { ... }
Please would you consider adding back some support for overriding the url? Alternatively, is there a better way to test this?
Thank you
The text was updated successfully, but these errors were encountered:
Fix issue slack-go#744: include GetOAuth* methods in Client's method set
064c0b4
Successfully merging a pull request may close this issue.
In version
v0.4.0
I used to be able to mock requests to GetOAuth* methods by overriding theSLACK_API
variable:slack.SLACK_API = "some-test-url"
Now this isn't possible anymore, because these methods build the request with
APIURL
which is a constant:Please would you consider adding back some support for overriding the url? Alternatively, is there a better way to test this?
Thank you
The text was updated successfully, but these errors were encountered: