Skip to content

Commit

Permalink
Add a system test exercising non-default project for dataset.
Browse files Browse the repository at this point in the history
  • Loading branch information
tseaver committed Dec 5, 2016
1 parent ab0bf9c commit d5091bc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions system_tests/bigquery.py
Original file line number Diff line number Diff line change
Expand Up @@ -524,3 +524,12 @@ def test_sync_query_w_nested_arrays_and_structs(self):
self.assertEqual(len(query.rows), 1)
self.assertEqual(len(query.rows[0]), 1)
self.assertEqual(query.rows[0][0], example['expected'])

def test_dump_table_w_public_data(self):
PUBLIC = 'bigquery-public-data'
DATASET_NAME = 'samples'
TABLE_NAME = 'natality'

dataset = Config.CLIENT.dataset(DATASET_NAME, project=PUBLIC)
table = dataset.table(TABLE_NAME)
self._fetch_single_page(table)

0 comments on commit d5091bc

Please sign in to comment.