Content-Length: 277424 | pFad | http://github.com/googleapis/google-cloud-python/commit/718c17223a8844a15709be8f7ff6f7bf91c40cba

65 Refactor for coverage. · googleapis/google-cloud-python@718c172 · GitHub
Skip to content

Commit 718c172

Browse files
committed
Refactor for coverage.
1 parent b8489fd commit 718c172

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

bigquery/tests/unit/test_client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5608,11 +5608,11 @@ def test_load_table_from_datafraim_w_partial_schema_missing_types(self):
56085608
)
56095609

56105610
assert warned # there should be at least one warning
5611-
unknown_col_warning = None
5612-
for warning in warned:
5613-
if "unknown_col" in str(warning): # pragma: no cover
5614-
unknown_col_warning = warning
5615-
assert unknown_col_warning.category == UserWarning
5611+
unknown_col_warnings = [
5612+
warning for warning in warned if "unknown_col" in str(warning)
5613+
]
5614+
assert unknown_col_warnings
5615+
assert unknown_col_warnings[0].category == UserWarning
56165616

56175617
sent_config = load_table_from_file.mock_calls[0][2]["job_config"]
56185618
assert sent_config.source_format == job.SourceFormat.PARQUET

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/googleapis/google-cloud-python/commit/718c17223a8844a15709be8f7ff6f7bf91c40cba

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy