-
Notifications
You must be signed in to change notification settings - Fork 1.6k
refactor(bigquery): update code samples to use strings for table and dataset IDs #9495
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
b22b4ed
44c3e65
45d90de
5631419
5af72c8
1ab9eb7
14fbab4
c1c2c7c
f15033c
bfa3ec2
9326f90
0e50ead
04555f9
b2cb5a1
08a1a2f
1c135d7
1eb6a25
16dd3f8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -20,6 +20,6 @@ def test_client_query_dry_run(capsys, client): | |||||||
|
|
||||||||
| query_job = client_query_dry_run.client_query_dry_run(client) | ||||||||
| out, err = capsys.readouterr() | ||||||||
| assert "This query will process 65935918 bytes." in out | ||||||||
| assert "This query will process 0 bytes." not in out | ||||||||
emar-kar marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||||||
| assert "This query will process 0 bytes." not in out | |
| assert "This query will process" in out | |
| assert query_job.total_bytes_processed > 0 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,13 +39,16 @@ def test_copy_table_multiple_source(capsys, client, random_table_id, random_data | |
| body, table_ref, location="US", job_config=job_config | ||
| ).result() | ||
|
|
||
| tables_ids = [ | ||
| table_ids = [ | ||
| "{}.table1".format(random_dataset_id), | ||
| "{}.table2".format(random_dataset_id), | ||
| ] | ||
|
|
||
| copy_table_multiple_source.copy_table_multiple_source( | ||
| client, random_table_id, tables_ids | ||
| client, random_table_id, table_ids | ||
| ) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's call |
||
| out, err = capsys.readouterr() | ||
| assert "A copy of 2 tables has been created" in out | ||
| assert ( | ||
| "The tables {} have been appended to {}".format(table_ids, random_table_id) | ||
| in out | ||
| ) | ||
Uh oh!
There was an error while loading. Please reload this page.