GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — tests: revise test to run without setting credentials in env by cojenco · Pull Request #579 · googleapis/python-storage

This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Conversation

@cojenco

@cojenco cojenco commented Sep 2, 2021

Copy link
Copy Markdown
Contributor

Part of #570 and #565

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cojenco
tests: revise test to run without setting credentials in env
4f0ec91
@product-auto-label product-auto-label Bot added the api: storage Issues related to the googleapis/python-storage API. label Sep 2, 2021
@google-cla google-cla Bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 2, 2021
@cojenco
cojenco marked this pull request as ready for review September 2, 2021 21:25
@cojenco
cojenco requested a review from a team September 2, 2021 21:25
busunkim96
busunkim96 approved these changes Sep 2, 2021
View reviewed changes
tseaver
tseaver reviewed Sep 3, 2021
View reviewed changes

@tseaver tseaver left a comment

Copy link
Copy Markdown
Contributor

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.

@cojenco the need to use a "real" Client here has a bit of "code smell": The Connection class shouldn't need to use Client for anything, even tests. Would a better fix for #565 be to have the Batch class construct a copy of the original ClientInfo?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@cojenco
address review comments and mock client
4edcee9
@cojenco

cojenco commented Sep 3, 2021

Copy link
Copy Markdown
Contributor Author

@tseaver Makes sense, thanks! I've revised the test to mock out Client. ClientInfo is propagated from the Client passed into the Batch class constuctor.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@cojenco
Merge branch 'main' into test-revision-565
eec2246
@cojenco
cojenco merged commit 98a0e62 into googleapis:main Sep 7, 2021
@cojenco
cojenco deleted the test-revision-565 branch September 10, 2021 21:32
cojenco added a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
@cojenco
tests: revise test to run without setting credentials in env (googlea…
5cc43f6
…pis#579)

* tests: revise test to run without setting credentials in env

* address review comments and mock client
cojenco added a commit to cojenco/python-storage that referenced this pull request Oct 13, 2021
@cojenco
tests: revise test to run without setting credentials in env (googlea…
02d1bdf
…pis#579)

* tests: revise test to run without setting credentials in env

* address review comments and mock client
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

2 more reviewers
@tseaver tseaver tseaver left review comments
@busunkim96 busunkim96 busunkim96 approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

api: storage Issues related to the googleapis/python-storage API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@cojenco @tseaver @busunkim96
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.