Skip to content

Commit

Permalink
test: correct policy tags REST representation (#388)
Browse files Browse the repository at this point in the history
There need to be some changes in `google-cloud-bigquery` for this fix: googleapis/python-bigquery#703 (comment) (Update: Done!)

Closes #387
  • Loading branch information
tswast committed Oct 25, 2021
1 parent 68b807e commit 8bbe934
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/unit/test_load.py
Expand Up @@ -112,7 +112,9 @@ def test_load_chunks_omits_policy_tags(
"my-project.my_dataset.my_table"
)
schema = {
"fields": [{"name": "col1", "type": "INT64", "policyTags": ["tag1", "tag2"]}]
"fields": [
{"name": "col1", "type": "INT64", "policyTags": {"names": ["tag1", "tag2"]}}
]
}

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

0 comments on commit 8bbe934

Please sign in to comment.