-
Notifications
You must be signed in to change notification settings - Fork 167
refactor: add / use 'Client._get_resource' method #431
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
Conversation
aab3324 to
4f1110c
Compare
4bc1476 to
99e7e37
Compare
3942d75 to
2103462
Compare
2103462 to
794340a
Compare
794340a to
9bae346
Compare
|
Flaky systest reported in #435. Rerunning tests. |
9bae346 to
44eeeb4
Compare
For use by API-invoking methods using the 'GET' method. Toward #38.
For parity with forthcoming '_put_resource', '_patch_resource', '_post_resource', and '_delete_resource' methods. Toward #38.
385f51d to
392343d
Compare
| method="GET", | ||
| path="%s/iam" % (self.path,), | ||
| info = client._get_resource( | ||
| "%s/iam" % (self.path,), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is more of just a style thing, but in modern Python, should we be preferring str.format or f strings if Python 2 support has been dropped?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once we drop Python2, I would definitely prefer f-strings.
chrisrossi
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Use an explicit helper client method for `GET` requests, rather than manipulating client's private `_connection.api_request`. As a benefit, tests get *way* clearer. Toward googleapis#38 ~~Based on top of the branch from googleapis#430. I will rebase when that PR merges.~~
Use an explicit helper client method for `GET` requests, rather than manipulating client's private `_connection.api_request`. As a benefit, tests get *way* clearer. Toward googleapis#38 ~~Based on top of the branch from googleapis#430. I will rebase when that PR merges.~~
Use an explicit helper client method for
GETrequests, rather than manipulating client's private_connection.api_request. As a benefit, tests get way clearer.Toward #38
Based on top of the branch from #430. I will rebase when that PR merges.