Skip to content

Commit d5091bc

Browse files
committed
Add a system test exercising non-default project for dataset.
1 parent ab0bf9c commit d5091bc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

system_tests/bigquery.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,3 +524,12 @@ def test_sync_query_w_nested_arrays_and_structs(self):
524524
self.assertEqual(len(query.rows), 1)
525525
self.assertEqual(len(query.rows[0]), 1)
526526
self.assertEqual(query.rows[0][0], example['expected'])
527+
528+
def test_dump_table_w_public_data(self):
529+
PUBLIC = 'bigquery-public-data'
530+
DATASET_NAME = 'samples'
531+
TABLE_NAME = 'natality'
532+
533+
dataset = Config.CLIENT.dataset(DATASET_NAME, project=PUBLIC)
534+
table = dataset.table(TABLE_NAME)
535+
self._fetch_single_page(table)

0 commit comments

Comments
 (0)