From f647d6eae5facea631120e72c4ebcf38b579c38b Mon Sep 17 00:00:00 2001 From: Tim Swast Date: Wed, 22 Sep 2021 11:55:45 -0500 Subject: [PATCH] test: correct policy tags REST representation --- tests/unit/test_load.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/unit/test_load.py b/tests/unit/test_load.py index d00495a6..2ddb4f50 100644 --- a/tests/unit/test_load.py +++ b/tests/unit/test_load.py @@ -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))