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 — chore(bigquery): ignore case in assertion by daniel-sanche · Pull Request #18230 · googleapis/google-cloud-python

Conversation

@daniel-sanche

@daniel-sanche daniel-sanche commented Aug 26, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

In #18064, X-Goog-API-Client was changed to lowercase. This broke an assertion in the bigquery tests

This PR updates the test to support either case, like #18064

Sorry, something went wrong.

Uh oh!

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

gemini-code-assist[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction
@daniel-sanche
ignore case in assertion
13fd7a2
@daniel-sanche
daniel-sanche requested review from a team as code owners August 26, 2026 23:23
@daniel-sanche
daniel-sanche requested review from GarrettWu and removed request for a team August 26, 2026 23:23
gemini-code-assist[bot]
gemini-code-assist Bot reviewed Aug 26, 2026
View reviewed changes

@gemini-code-assist gemini-code-assist Bot 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.

Code Review

This pull request updates a unit test in test_client.py to assert that http.request is called with a requests.structures.CaseInsensitiveDict for headers. However, accessing requests.structures directly will raise an AttributeError at runtime because the structures submodule is not exposed in the requests package's initialization. It is recommended to assert on headers=mock.ANY and perform a manual case-insensitive comparison of the headers instead.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread packages/google-cloud-bigquery/tests/unit/test_client.py Resolved

Uh oh!

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

daniel-sanche added 2 commits August 26, 2026 16:37
@daniel-sanche
assert updated header
272c8f5
@daniel-sanche
support either case
4985d1b
This was referenced Aug 27, 2026
chore(tests): enable core_deps presubmit check #18233
Merged
chore(tests): per-package system test timeouts #18206
Closed
parthea
parthea approved these changes Aug 28, 2026
View reviewed changes
@parthea
parthea merged commit 1223af3 into googleapis:main Aug 28, 2026
44 checks passed

Uh oh!

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

daniel-sanche added a commit to daniel-sanche/google-cloud-python that referenced this pull request Aug 28, 2026
@daniel-sanche
chore(bigquery): ignore case in assertion (googleapis#18230)
ccbcb87
In googleapis#18064,
`X-Goog-API-Client` was changed to lowercase. This broke an assertion in
the bigquery tests

This PR updates the test to support either case, like
googleapis#18064
daniel-sanche added a commit that referenced this pull request Aug 31, 2026
@daniel-sanche
chore(tests): enable core_deps presubmit check (#18233)
a7e09c9
This PR re-enabled the core_deps check on pre-submit, with a few
changes.

This test triggers the `core_deps_from_source` nox session, which will
run the unit tests against the unreleased copy of the library present in
the codebase

Unlike the previous test:
- we take advantage of the new sharding system
- this one only targets handwritten libraries, not all packages in the
repo
- tests are trigged for all handwritten libraries when any core
dependency is changed (auth, api_core, proto_plus, etc), or if the test
config changed

This change also modified noxfiles, to better support preview packages,
and avoid downloading over the network when possible

Tests are blocked on
#18230
@ayam04 ayam04 mentioned this pull request Sep 2, 2026
fix(bigquery): scope SSLError non-retryable to streaming inserts #18202
Closed
ayam04 added a commit to ayam04/google-cloud-python that referenced this pull request Sep 2, 2026
@ayam04
chore: merge main into branch (picks up googleapis#18230 fixing unit …
006d796
…failure)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@parthea parthea parthea approved these changes
@GarrettWu GarrettWu Awaiting requested review from GarrettWu GarrettWu is a code owner automatically assigned from googleapis/bigquery-dataframe-team
+1 more reviewer
@gemini-code-assist gemini-code-assist[bot] gemini-code-assist[bot] left review comments
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

None yet

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.

2 participants

@daniel-sanche @parthea
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.