GeezerVison is showing github.com — chore(bigquery): ignore case in assertion by daniel-sanche · Pull Request #18230 · googleapis/google-cloud-python
Conversation
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
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.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Aug 27, 2026
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
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
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
added a commit
to ayam04/google-cloud-python
that referenced
this pull request
Sep 2, 2026
Reviewers
parthea
parthea approved these changes
GarrettWu
Awaiting requested review from GarrettWu
GarrettWu is a code owner automatically assigned from googleapis/bigquery-dataframe-team
+1 more reviewer
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
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.
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.
|