Skip to content

Commit 8bbe934

Browse files
authored
test: correct policy tags REST representation (#388)
There need to be some changes in `google-cloud-bigquery` for this fix: googleapis/python-bigquery#703 (comment) (Update: Done!) Closes #387
1 parent 68b807e commit 8bbe934

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/unit/test_load.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ def test_load_chunks_omits_policy_tags(
112112
"my-project.my_dataset.my_table"
113113
)
114114
schema = {
115-
"fields": [{"name": "col1", "type": "INT64", "policyTags": ["tag1", "tag2"]}]
115+
"fields": [
116+
{"name": "col1", "type": "INT64", "policyTags": {"names": ["tag1", "tag2"]}}
117+
]
116118
}
117119

118120
_ = list(load.load_chunks(mock_bigquery_client, df, destination, schema=schema))

0 commit comments

Comments
 (0)