Skip to content

Commit

Permalink
BQ: Remove references to table.name
Browse files Browse the repository at this point in the history
  • Loading branch information
tswast committed Sep 15, 2017
1 parent 4000e2b commit cbaf4e2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bigquery/tests/system.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def test_create_table(self):
table.create()
self.to_delete.insert(0, table)
self.assertTrue(table.exists())
self.assertEqual(table.name, TABLE_NAME)
self.assertEqual(table.table_id, TABLE_NAME)

def test_list_tables(self):
DATASET_ID = _make_dataset_id('list_tables')
Expand Down Expand Up @@ -240,7 +240,7 @@ def test_list_tables(self):
all_tables = list(iterator)
self.assertIsNone(iterator.next_page_token)
created = [table for table in all_tables
if (table.name in tables_to_create and
if (table.table_id in tables_to_create and
table.dataset_id == DATASET_ID)]
self.assertEqual(len(created), len(tables_to_create))

Expand Down Expand Up @@ -1167,7 +1167,7 @@ def test_create_table_insert_fetch_nested_schema(self):
table.create()
self.to_delete.insert(0, table)
self.assertTrue(table.exists())
self.assertEqual(table.name, table_name)
self.assertEqual(table.table_id, table_name)

to_insert = []
# Data is in "JSON Lines" format, see http://jsonlines.org/
Expand Down

0 comments on commit cbaf4e2

Please sign in to comment.