Skip to content

Commit 29caa0f

Browse files
author
Barak Cohen
committed
add template_suffix to unit test
1 parent 8182e31 commit 29caa0f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

gcloud/bigquery/test_table.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1185,6 +1185,7 @@ def _row_data(row):
11851185
SENT = {
11861186
'skipInvalidRows': True,
11871187
'ignoreUnknownValues': True,
1188+
'template_suffix': '20160303',
11881189
'rows': [{'insertId': index, 'json': _row_data(row)}
11891190
for index, row in enumerate(ROWS)],
11901191
}
@@ -1194,7 +1195,9 @@ def _row_data(row):
11941195
rows=ROWS,
11951196
row_ids=[index for index, _ in enumerate(ROWS)],
11961197
skip_invalid_rows=True,
1197-
ignore_unknown_values=True)
1198+
ignore_unknown_values=True,
1199+
template_suffix='20160303',
1200+
)
11981201

11991202
self.assertEqual(len(errors), 1)
12001203
self.assertEqual(errors[0]['index'], 1)

0 commit comments

Comments
 (0)