-
Notifications
You must be signed in to change notification settings - Fork 6.5k
[Cleanup] storage/s3-sdk: Adds docstrings, return value instead of print #9948
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
7e9bc5d
to
ef3c246
Compare
3832870
to
c03bbd8
Compare
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.
Are there any reason to switch to returning a list rather than printing them?
Yes. We want to test against returned values rather than captured strings. |
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.
Please remove "capsys" parameters and fix lint's nitpicking. You don't need to wait for another review from me. LGTM.
Have we changed that in general across samples? I see this in the standards still: https://googlecloudplatform.github.io/samples-style-guide/#result |
82e3227
to
79a003f
Compare
The instructions for FixIt don't require removing printing, just no longer basing tests on that instead of on returned values. |
Checklist
nox -s py-3.9
(see Test Environment Setup)nox -s lint
(see Test Environment Setup)