Commit 24fe2e3
authored
fix(storage): support updated GapicCallable metadata in tests (#18031)
In google-api-core>=2.34.0 (PR #17616), _GapicCallable replaced the
internal _metadata attribute with _default_metadata /
_x_goog_api_client.
This PR updates test_init_default_client_info in
packages/google-cloud-bigquery-storage/tests/unit/test_read_client_v1.py
to check _default_metadata with a fallback to _metadata, maintaining
compatibility across both older and newer google-api-core releases.
Fixes #<issue_number_goes_here> 🦕1 parent 9c13ae2 commit 24fe2e3
1 file changed
Lines changed: 8 additions & 18 deletions
Lines changed: 8 additions & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
158 | 157 | | |
159 | 158 | | |
160 | 159 | | |
161 | | - | |
162 | | - | |
163 | 160 | | |
164 | | - | |
165 | 161 | | |
166 | | - | |
| 162 | + | |
167 | 163 | | |
168 | | - | |
169 | | - | |
| 164 | + | |
| 165 | + | |
170 | 166 | | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
0 commit comments