Skip to content

Commit 91c3aaf

Browse files
committed
Updates Table tests of full_table_id for consistency.
1 parent 13d5526 commit 91c3aaf

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

bigquery/tests/unit/test_table.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ def _setUpConstants(self):
221221
self.WHEN = datetime.datetime.utcfromtimestamp(self.WHEN_TS).replace(
222222
tzinfo=UTC)
223223
self.ETAG = 'ETAG'
224-
self.TABLE_FULL_ID = '%s:%s:%s' % (
224+
self.TABLE_FULL_ID = '%s:%s.%s' % (
225225
self.PROJECT, self.DS_ID, self.TABLE_NAME)
226226
self.RESOURCE_URL = 'http://example.com/path/to/resource'
227227
self.NUM_BYTES = 12345
@@ -469,7 +469,7 @@ def test_props_set_by_server(self):
469469

470470
CREATED = datetime.datetime(2015, 7, 29, 12, 13, 22, tzinfo=UTC)
471471
MODIFIED = datetime.datetime(2015, 7, 29, 14, 47, 15, tzinfo=UTC)
472-
TABLE_FULL_ID = '%s:%s:%s' % (
472+
TABLE_FULL_ID = '%s:%s.%s' % (
473473
self.PROJECT, self.DS_ID, self.TABLE_NAME)
474474
URL = 'http://example.com/projects/%s/datasets/%s/tables/%s' % (
475475
self.PROJECT, self.DS_ID, self.TABLE_NAME)
@@ -887,7 +887,7 @@ def test_ctor(self):
887887
self.assertEqual(table.table_id, table_id)
888888
self.assertEqual(
889889
table.full_table_id,
890-
'{}:{}:{}'.format(project, dataset_id, table_id))
890+
'{}:{}.{}'.format(project, dataset_id, table_id))
891891
self.assertEqual(table.reference.project, project)
892892
self.assertEqual(table.reference.dataset_id, dataset_id)
893893
self.assertEqual(table.reference.table_id, table_id)
@@ -919,7 +919,7 @@ def test_ctor_view(self):
919919
self.assertEqual(table.table_id, table_id)
920920
self.assertEqual(
921921
table.full_table_id,
922-
'{}:{}:{}'.format(project, dataset_id, table_id))
922+
'{}:{}.{}'.format(project, dataset_id, table_id))
923923
self.assertEqual(table.reference.project, project)
924924
self.assertEqual(table.reference.dataset_id, dataset_id)
925925
self.assertEqual(table.reference.table_id, table_id)

0 commit comments

Comments
 (0)